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.
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:
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 READMElist_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
Installation
Installation
- Clone the repository
- Install dependencies:
npm install - Set up your database: Add
DATABASE_URLto.envpointing to your Week 3 Neon database - Push database schema:
npx prisma db push - 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
Last updated · Auto-generated from public README + GitHub signals.