Skip to main content
Glama
astrodevit-creator

mcp-server-skeleton

mcp-server-skeleton

Минимальный каркас сервера Model Context Protocol (MCP) — только стандартная библиотека (JSON-RPC 2.0 через stdio). Реализует базовое рукопожатие (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.


Ссылки

Maintenance

ActivitySlowing
ResponsivenessNo issues

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