MCP Server Boilerplate

Communauté IA et agents

Starter templates for MCP servers in TypeScript and Python, with tool, resource and prompt patterns.

Installation

Les étapes d'installation sont dans la documentation ci-dessous. Documentation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. MCP Server Boilerplate
  2. Server Capabilities
  3. What's Included (Free)
  4. Project Structure
  5. Getting Started
  6. Going Further
  7. Resources
  8. License

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
ToolDescriptionParameters
echoEcho a message back to the callermessage (string, required)
timestampGet the current UTC timestamp(none)
Resources
URIDescriptionMIME Type
server://infoServer 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

  1. Clone this repo
  2. npm install
  3. npm run build
  4. Add to your Claude Desktop config
  5. 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

Get the full kit →

Resources

License

MIT — use this however you want.

Questions fréquentes

Qu'est-ce que MCP Server Boilerplate ?

Starter templates for MCP servers in TypeScript and Python, with tool, resource and prompt patterns.

Comment installer MCP Server Boilerplate ?

Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.

MCP Server Boilerplate est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient MCP Server Boilerplate ?

Il est publié par shellsage-ai. AI.tn le référence sans le maintenir ni le recommander.

Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.