Skip to main content
Glama

crud-mcp

An MCP server that exposes the crud-app users API as tools, so Claude can list, read, create, update and delete users by talking to the running API. It holds no data and never touches Postgres: each tool is one HTTP request to crud-app, which stays authoritative for validation and errors.

Tool

Calls

Arguments

list_users

GET /users

none

get_user

GET /users/:id

id

create_user

POST /users

name, optional email

update_user

PUT /users/:id

id, and name and/or email

delete_user

DELETE /users/:id

id (marked destructive)

Names and emails are capped at 30 characters to match the VARCHAR(30) columns. API errors come back as tool errors carrying the API's own message.

Requirements

  • Node 20 or later.

  • crud-app running. From the crud-app checkout: docker compose up -d. It publishes the API on http://localhost, which is this server's default.

  • To point at an API elsewhere, set CRUD_API_URL, for example CRUD_API_URL=http://localhost:3000.

Related MCP server: Super Productivity MCP Server

Install

git clone https://github.com/aaronhmiller/crud-mcp
cd crud-mcp
npm ci
npm test          # drives the server over stdio against a stub API; no Docker needed

The server speaks MCP over stdio. A client starts it as a subprocess, so you never run it by hand. To poke at it interactively:

npm run inspect   # opens the MCP Inspector in your browser

Connect Claude Code

Register the server once, at user scope so it is available in every project:

claude mcp add --scope user crud-mcp -- node /ABSOLUTE/PATH/TO/crud-mcp/server.js

Or make it part of the crud-app project, so anyone who opens that repo in Claude Code gets it. Put this in .mcp.json at the root of crud-app:

{
  "mcpServers": {
    "crud-mcp": {
      "command": "node",
      "args": ["../crud-mcp/server.js"]
    }
  }
}

Check it with claude mcp list; crud-mcp should show as connected. Then, in a Claude Code session: "list the users", "add a user named Dana with email dana@example.org", "change user 3's email to gerry@example.net".

Connect Claude Desktop

Edit the config file:

~/Library/Application Support/Claude/claude_desktop_config.json      (macOS)
%APPDATA%\Claude\claude_desktop_config.json                           (Windows)

Add a mcpServers entry alongside whatever is already there:

{
  "mcpServers": {
    "crud-mcp": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/crud-mcp/server.js"],
      "env": { "CRUD_API_URL": "http://localhost" }
    }
  }
}

Use the absolute path to node (which node) if Claude Desktop cannot find it, since GUI apps do not read your shell's PATH. Quit and reopen Claude Desktop. The tools appear under the tools icon in the chat composer.

Driving it by voice

MCP servers do not know or care where the words came from, so any voice input that lands in Claude's chat box works:

  • Claude Desktop has a microphone button in the composer for dictation in current builds. Speak, then send.

  • macOS dictation works in any text field, including Claude Desktop and the terminal running Claude Code. Enable it in System Settings, then press the dictation key (or fn twice by default) and speak.

  • Claude mobile has voice mode but runs on your phone, which cannot start a stdio server on your Mac. Use Desktop or Claude Code for this one.

Say things like "show me all the users", "who is user two", "add a user named Priya", "delete user five". Claude picks the tool, calls the API, and reads back the result. Deletes are flagged as destructive, so Claude will typically confirm before running them.

Development

npm test                                   # node:test, stdio client against a stub API
CRUD_API_URL=http://localhost node server.js   # run by hand; speaks MCP on stdin/stdout

Logging must go to stderr: stdout is the MCP channel.

Available Tools

5 tools
create_userCreate a userB

Add a new user. Name is required; email is optional. Returns the new user's id.

Inputs: name (required), email.

delete_userDelete a userA
DestructiveIdempotent

Permanently delete the user with this id. This cannot be undone; confirm with the person first if the request was ambiguous.

Inputs: id (required).

get_userGet a userA
Read-onlyIdempotent

Fetch one user by id. Returns a 404 error if no user has that id.

Inputs: id (required).

list_usersList usersA
Read-onlyIdempotent

List every user in the crud-app users table, ordered by id. Returns id, name and email for each.

Inputs: no named parameters.

update_userUpdate a userA
Idempotent

Change a user's name, email, or both. Give the id and at least one of name or email. Fields left out are unchanged.

Inputs: id (required), name, email.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool maps to a distinct CRUD verb on a single resource (user), so there is no plausible confusion between them. The descriptions reinforce the boundaries, e.g. get_user vs list_users and update_user vs create_user are unambiguous.

    Naming Consistency5/5

    All five tools follow an identical verb_noun pattern (list_users, get_user, create_user, update_user, delete_user). The singular/plural noun usage is also semantically correct (list=plural, single-record ops=singular).

    Tool Count5/5

    Five tools is exactly the surface needed for a single-table CRUD app, with no redundant or speculative operations. Every tool earns its place in the lifecycle.

    Completeness5/5

    The stated domain is the users table, and the surface covers the full lifecycle: list, read, create, update, delete. No dead ends — an agent can perform any standard user operation without a missing step.

    Related MCP Connectors

    Related MCP Servers