MCP.so
ログイン

MCP Base

@josharsh

基本情報

カテゴリ

開発者ツール

ライセンス

MIT

トランスポート

stdio

作者

josharsh

MCP Base について

Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP

MCP Base の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-boilerplate": {
      "command": "python",
      "args": [
        "main.py",
        "--transport=stdio"
      ]
    }
  }
}

MCP Base のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは 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

よくある質問

1

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.

2

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.

3

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/`.

4

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.

5

Can I contribute to MCP Base?

Yes, contributions are welcome. See `CONTRIBUTING.md` for guidelines, code style, and the pull request process.

コメント

「開発者ツール」の他のコンテンツ