MCP Base
@josharsh
关于 MCP Base
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-boilerplate": {
"command": "python",
"args": [
"main.py",
"--transport=stdio"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Base?
MCP Base is a production-ready, extensible Python template for building Model Context Protocol (MCP) servers. It provides a modular foundation for creating servers that expose tools, prompts, and resources to LLMs and agentic clients.
How to use MCP Base?
Install dependencies with pip install -r requirements.txt, copy .env.example to .env and configure, then run the server using python main.py --transport=stdio (STDIO) or follow transport-specific READMEs for SSE/HTTP.
Key features of MCP Base
- Multi‑transport support: STDIO, SSE, HTTP
- Modular tools, prompts, and resources with base classes
- Type‑safe input validation using Pydantic
- Security best practices: directory sandboxing, input validation
- Production‑ready: logging, environment management, Docker support
- Comprehensive documentation for users and contributors
Use cases of MCP Base
- Rapidly prototype a filesystem tool server for LLM agents
- Build and deploy an API tool that fetches external data
- Create a text summarization prompt server
- Develop a dynamic resource provider for LLM clients
- Test and containerize MCP servers using the provided Dockerfile
FAQ from MCP Base
Is MCP Base a ready-to-use MCP server?
No – it is a starter template. You add your own tools, prompts, and resources by creating classes and registering them in the provided registries.
What dependencies are required?
MCP Base uses Python 3 and lists dependencies in requirements.txt and pyproject.toml. It is built on the official MCP Python SDK and uses Pydantic for schemas.
What transport protocols does MCP Base support?
It supports STDIO, SSE, and HTTP transports. Each is modular and documented in separate READMEs under /src/transports/.
How are files and data secured?
All file and directory operations are sandboxed to allowed paths. Input validation is enforced for all tool/resource inputs, and sensitive configuration is managed via environment variables.
Can I contribute to MCP Base?
Yes, contributions are welcome. See CONTRIBUTING.md for guidelines, code style, and the pull request process.
开发工具 分类下的更多 MCP 服务器
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
OpenSumi
opensumiA framework helps you quickly build AI Native IDE products. MCP Client, supports Model Context Protocol (MCP) tools via MCP server.
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
评论