loading…
Search for a command to run...
loading…
Production-ready MCP server starter templates in TypeScript and Python. Includes tool, resource, and prompt patterns with Claude Desktop integration configs.
Production-ready MCP server starter templates in TypeScript and Python. Includes tool, resource, and prompt patterns with Claude Desktop integration configs.
Production-ready starter templates for building Model Context Protocol servers in TypeScript and Python.
Skip the boilerplate. Start building tools your AI agents can actually use.
This boilerplate ships with working examples of all three MCP primitives:
| Tool | Description | Parameters |
|---|---|---|
echo |
Echo a message back to the caller | message (string, required) |
timestamp |
Get the current UTC timestamp | (none) |
| URI | Description | MIME Type |
|---|---|---|
server://info |
Server metadata (name, version, available tools) | application/json |
No prompt templates are registered in the starter. The full kit includes prompt template patterns.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new McpServer({
name: "my-mcp-server",
version: "1.0.0",
});
// Register a tool
server.tool("hello", { name: { type: "string" } }, async ({ name }) => ({
content: [{ type: "text", text: `Hello, ${name}!` }],
}));
// Connect via stdio
const transport = new StdioServerTransport();
await server.connect(transport);
from mcp.server import Server
from mcp.server.stdio import stdio_server
app = Server("my-mcp-server")
@app.tool()
async def hello(name: str) -> str:
"""Say hello to someone."""
return f"Hello, {name}!"
async def main():
async with stdio_server() as (read, write):
await app.run(read, write)
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["tsx", "src/index.ts"]
}
}
}
my-mcp-server/
├── src/
│ └── index.ts # Server entry point
├── tools/
│ └── example.ts # Tool definitions
├── resources/
│ └── example.ts # Resource providers
├── package.json
├── tsconfig.json
└── claude_desktop_config.json
npm installnpm run buildThis free boilerplate gets you started. The MCP Server Boilerplate Kit ($49) includes:
MIT — use this however you want.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-server-boilerplate": {
"command": "npx",
"args": []
}
}
}