MCP Catalogs
Home

ai-agent-dev-week4-mcp-server

by jmjmlang·0·Score 33

An MCP server exposing a Person database with CRUD operations for AI agents using Next.js and Prisma.

databasedeveloper-toolsai-llm
0
Forks
0
Open issues
this month
Last commit
2d ago
Indexed

Overview

This MCP server exposes a Person database through a Streamable HTTP transport endpoint, authenticated by API keys. Each key is bound to a specific user, ensuring data isolation between different API key holders. The server provides standard CRUD operations on people records including listing, retrieving, creating, updating, and deleting entries. It uses Next.js 16 with App Router, TypeScript, Prisma 7, and Neon Postgres for data storage.

Try asking AI

After installing, here are 3 things you can ask your AI assistant:

you:Personal CRM assistant that can manage contact information
you:Team management tool integrated with AI agents
you:Automated contact sync between different systems

When to choose this

Choose this MCP server if you need basic CRUD operations for a person database and are already using a Postgres/Neon backend with Next.js.

When NOT to choose this

Don't choose this if you need non-person database operations, custom authentication beyond API keys, or a production-ready solution without workshop-specific dependencies.

Tools this server exposes

5 tools extracted from the README
  • list_peoplelist_people(limit?)

    List of people, newest first.

  • get_personget_person(id)

    Retrieve a single person by their ID.

  • create_personcreate_person(name, email?, role?, notes?)

    Create a new person record.

  • update_personupdate_person(id, ...fields)

    Update an existing person's fields.

  • delete_persondelete_person(id)

    Delete a person record by ID.

Comparable tools

neon-mcpprisma-mcppostgres-mcpsupabase-mcp

Installation

Installation

  1. Clone the repository
  2. Install dependencies: npm install
  3. Set up your database: Add DATABASE_URL to .env pointing to your Week 3 Neon database
  4. Push database schema: npx prisma db push
  5. Run development server: npm run dev

The server will be available at http://localhost:3000/api/mcp

API Key Setup

Generate an API key for a user:

npm run issue-key -- user@example.com "my laptop"

Claude Desktop Configuration

Add to your Claude Desktop config:

{
  "mcpServers": {
    "ai-agent-dev-week4": {
      "command": "npx",
      "args": ["ai-agent-dev-week4-mcp-server"],
      "env": {
        "DATABASE_URL": "your_database_url"
      }
    }
  }
}

VS Code Configuration

Copy .vscode/mcp.json into your workspace.

Compare ai-agent-dev-week4-mcp-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.