shellsage-ai/mcp-server-boilerplate
ready MCP server starter templates in TypeScript and Python. Includes tool, resource, and prompt patterns with Claude Desktop integration configs.
Ask AI about shellsage-ai/mcp-server-boilerplate
Powered by Claude Β· Grounded in docs
I know everything about shellsage-ai/mcp-server-boilerplate. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
MCP Server Boilerplate
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.
