Skip to main content
Glama
astrodevit-creator

mcp-server-skeleton

mcp-server-skeleton

最小限の**Model Context Protocol (MCP)**サーバースケルトン — 標準ライブラリのみ (stdio上のJSON-RPC 2.0)。コアハンドシェイク(initialize、 tools/list、tools/call)を実装しているので、外部依存ゼロで独自ツールを 登録できます。Shopify / Meta Ads / Supabase / n8n を組み込んで、Claude、Cursor、Codex、Gemini、Hermes に公開できます。

オリジナルプロジェクト。「Agent Skills / MCP」トレンドに沿ったもの。また別の MCP ディレクトリ ではなく、拡張して使う実行可能サーバーです。

ツールの登録

from mcp_server import MCPServer

server = MCPServer("my-tools", "0.1.0")
server.register_tool(
    "add", "Add two numbers",
    {"type": "object", "properties": {"a": {"type": "number"}, "b": {"type": "number"}}},
    lambda args: str(args["a"] + args["b"]),
)
server.serve_stdio()

Related MCP server: mini-mcp-demo

テスト

pip install -e ".[dev]"
pytest

ライセンス

MIT — LICENSE を参照してください。


リンク

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Exposes a verified tool registry (calculator, sandboxed file read, web fetch) over MCP stdio, enabling any MCP-capable client to reuse the same tools from the inspectable ReAct loop.
    3
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables local tool calling over Model Context Protocol via stdio, providing deterministic tools such as calc.add, text.word_count, and text.summarize_naive after JSON-RPC handshake and discovery.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI clients to call small utility tools like echo and Markdown-to-PDF conversion, running locally over stdio.
    2
    MIT