MCP Server Boilerplate Generator

Generate ready-to-use TypeScript or Python MCP server skeleton code from your server info and tool definitions, right in the browser.

FreeOnline Tool
Loading…

How to Use

  1. Fill in the server name, version, and description, then choose a language (TypeScript/Node.js or Python) and transport (stdio or SSE).
  2. Click "+ Add Tool" to define one or more MCP tools — name, description, and a JSON Schema for the input parameters.
  3. Click "Generate Code" to produce the full server source, including skeleton handlers for the tools/list and tools/call requests.
  4. Click "Copy Code" to copy the output to your clipboard and paste it into your project.
  5. Not sure where to start? Click "Load Sample Data" to see a complete example with a weather-lookup tool.

Features

  • Generates MCP server boilerplate in both TypeScript (Node.js, based on @anthropic-ai/sdk/mcp) and Python (based on the mcp package).
  • Produces bootstrap code for two transports: stdio and SSE (Server-Sent Events / Express).
  • Visually add or remove multiple tool definitions, each with a name, description, and JSON Schema for its parameters.
  • Automatically generates the tools/list handler and a tools/call dispatcher (with branch logic and a default "unknown tool" error case).
  • Call handlers are placeholder implementations (e.g. returning "Result for {toolName}") — you fill in the real business logic afterward.
  • One-click copy of the generated code to your clipboard.
  • Ships with a built-in sample (a weather-lookup MCP server) for quick evaluation.

Use Cases

Bootstrap a new MCP server project
Starting a new Model Context Protocol server and don't want to hand-write server init, request handlers, and dispatch logic — generate a runnable starting point in minutes.
Keep team MCP servers structurally consistent
When several people build MCP servers independently, use this generator so every server shares the same tools/list and tools/call structure instead of diverging.
Prototype the same tool set in TS and Python
Already have a TypeScript MCP server and want a Python version — re-enter the same tool definitions to produce a matching Python skeleton for side-by-side comparison.
Sanity-check tool JSON Schema design before wiring it up
Before writing real handlers, fill in tool names, descriptions, and JSON Schemas here to see exactly how they'll appear in the generated tools/list response.

FAQ

Can I run the generated code as-is?
The scaffolding — server init, tool registration, transport bootstrap — is complete and runnable, but each tool's tools/call handler is a placeholder that returns sample text. You need to add real business logic before shipping it.
Which transports are supported?
stdio (standard input/output, for local process communication) and SSE (Server-Sent Events, for exposing the server over HTTP; the SSE branch includes Express boilerplate).
What happens if my parameter Schema JSON is invalid?
The generator tries to JSON.parse whatever you type; if it fails to parse, it silently falls back to an empty object {}. Double-check the inputSchema field in the generated code afterward.
Does this tool actually start or connect to an MCP server?
No. Everything happens locally in your browser as plain text generation — no network requests or process execution. You copy the output into your own project to run it.