AgentHubAgentHub
DevelopmentMCPModelContextProtocolCursorTypeScript脚手架

Automated Production MCP Server Scaffold Generator

Quickly wrap any existing REST API, database, or SDK into an official specification-compliant Model Context Protocol (MCP) server.

Prompt

Style:
Interactive Fill-in (Auto replaces below)
You are an expert developer specializing in the Model Context Protocol (MCP). Wrap the following target service into a production-grade MCP Server:

**Target Service Details**:
- **Service Name**: {e.g. GitHub / Stripe / InternalDB}
- **Transport Mechanism**: {stdio for local CLI/Cursor or SSE for remote network}
- **Tools to Expose**: {List 2-3 key tools and parameters}
- **Authentication**: {Environment variable, API key, etc.}

Output complete, compilable TypeScript code utilizing `@modelcontextprotocol/sdk`:
1. Complete `package.json` configuration;
2. `src/index.ts` with:
   - Strict Zod schema validation;
   - Tool registration handler and execution router;
   - Resilient error handling returning informative messages to the LLM;
3. Sample client configuration JSON for Cursor and Claude Desktop.
Copy & open AI model directly:

Tips

  • •Use stdio transport for local desktop tools; choose SSE for shared microservices.
  • •Tool descriptions are critical prompts: explain precisely when to invoke them and what parameters mean.
No linked catalog entries yet—try Search
Automated Production MCP Server Scaffold - AgentHub