MCP Server Boilerplate
Production-ready MCP server starter templates in TypeScript and Python. Includes tool, resource, and prompt patterns with Claude Desktop integration configs.
README
MCP Server Boilerplate
<a href="https://glama.ai/mcp/servers/tdjg6t8sk8"><img width="380" height="200" src="https://glama.ai/mcp/servers/tdjg6t8sk8/badge" alt="MCP Server Boilerplate on Glama" /></a>
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.
Server Capabilities
This boilerplate ships with working examples of all three MCP primitives:
Tools
| Tool | Description | Parameters |
|---|---|---|
echo |
Echo a message back to the caller | message (string, required) |
timestamp |
Get the current UTC timestamp | (none) |
Resources
| URI | Description | MIME Type |
|---|---|---|
server://info |
Server metadata (name, version, available tools) | application/json |
Prompts
No prompt templates are registered in the starter. The full kit includes prompt template patterns.
What's Included (Free)
TypeScript Quickstart
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);
Python Quickstart
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)
Claude Desktop Configuration
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["tsx", "src/index.ts"]
}
}
}
Project Structure
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
Getting Started
- Clone this repo
npm installnpm run build- Add to your Claude Desktop config
- Start building tools
Going Further
This free boilerplate gets you started. The MCP Server Boilerplate Kit ($49) includes:
- ✅ Full TypeScript + Python dual-language templates
- ✅ Docker containerization with multi-stage builds
- ✅ CI/CD pipeline (GitHub Actions) for automated testing & deployment
- ✅ SSE (Server-Sent Events) transport for web deployments
- ✅ 15+ pre-built tool examples (file ops, API calls, database queries)
- ✅ Resource and prompt template patterns
- ✅ Error handling, logging, and retry patterns
- ✅ Testing framework with mock MCP client
- ✅ Production deployment guide (Docker, systemd, cloud)
- ✅ Claude Desktop + Cursor + Windsurf integration configs
Resources
License
MIT — use this however you want.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.