Agents

MCP server: give your AI tool a custom tool

A minimal Model Context Protocol server that exposes one useful tool to Cursor, Claude, and other MCP clients.

Paste into Cursor, Claude Code, Codex, Lovable, Bolt, Replit or v0
Build a minimal MCP (Model Context Protocol) server in TypeScript using the official @modelcontextprotocol/sdk package.

- One tool: [TOOL NAME] that [WHAT IT DOES], with a typed input schema (zod) and clear description.
- stdio transport so desktop/IDE clients can launch it.
- Validate inputs and return helpful error messages.
- README with the JSON config snippet to register it in my MCP client (command + args), and how to test it with the MCP Inspector.
Follow the SDK's current docs. APIs have changed across versions, so check the installed version's README.

Tips

  • If the client says 'spawn npx ENOENT', give it the full path to node/npx.

Works with: Cursor, Claude Code, Codex. Last reviewed 2026-11-13.

← All prompts · Something broke? Fix library