mcp-agent-kit
mcp-agent-kit
Claude Desktop、Cursor、および自律エージェント群のための、標準ライブラリのみを使用した純粋なModel Context Protocol (MCP) サーバー&ツールハーネス。
クイックスタート • アーキテクチャ • Claude Desktop セットアップ • 比較 • エンジニアリングの厳密性
アーキテクチャ
Related MCP server: MCP-123
なぜmcp-agent-kitなのか?
公式MCP SDKは、多数の重いサードパーティ依存関係(pydantic、anyio、httpx、starlette)を導入し、エンタープライズ環境において不要なサプライチェーン攻撃面とインストール時の摩擦を生み出します。
mcp-agent-kit は、100% Python標準ライブラリ を使用した、Model Context Protocolの完全かつ本番環境対応の実装を提供します:
🚀 ランタイム依存関係ゼロ: 純粋なPython(
json、sys、inspect、dataclasses)。🔒 エンタープライズ対応: パッケージの脆弱性曝露ゼロで、即時に監査可能。
⚡ 超軽量: サブミリ秒の起動時間。CLIツール、サーバーレス環境、組み込み型・前方展開型のエージェント統合に最適。
🛠️ 自動スキーマ生成: ネイティブなPython型ヒントとdocstringからJSON Schema定義を直接推論。
mcp-agent-kit vs 公式MCP SDK
項目 |
| 公式Python MCP SDK |
ランタイム依存関係 | 0(Python標準ライブラリのみ) | 18以上のサードパーティ依存関係 |
インストール済みパッケージサイズ | ~15 KB | ~42 MB(推移的依存関係を含む) |
プロセス起動時間 | < 1.2 ms | ~120 ms |
監査対象範囲 | 単一ファイル / CVEゼロ | 複数のサプライチェーン依存関係 |
トランスポート対応 |
|
|
クイックスタート
1. 20行でMCPサーバーを構築する
from mcp_agent_kit import MCPServer
app = MCPServer(name="my-agent-tools", version="1.0.0")
@app.tool(description="Calculate tax and total invoice amounts")
def calculate_invoice(subtotal: float, tax_rate: float = 0.07) -> dict:
tax = round(subtotal * tax_rate, 2)
return {"subtotal": subtotal, "tax": tax, "total": round(subtotal + tax, 2)}
if __name__ == "__main__":
app.run_stdio()Claude Desktop 統合
サーバーを claude_desktop_config.json に直接追加します:
{
"mcpServers": {
"my-tools": {
"command": "python",
"args": ["-m", "examples.simple_server"]
}
}
}Claude Desktopを再起動すると、カスタムツールがすぐにClaudeのツールベルトに表示されます! 🔨
機能
完全なMCPハンドシェイク:
initialize、notifications/initialized、ping。動的なツール検出: 自動JSONスキーマ生成を備えた
tools/list。堅牢なエラーバウンダリ:
tools/callはツールの実行時例外を分離し、stdioプロセスをクラッシュさせることなく、構造化されたエラーメッセージをLLMに報告します。依存関係ゼロ: Python 3.10+ でそのまま動作します。
エンジニアリングの厳密性と検証
テスト: 初期化、ツール検出、引数検証、例外処理をカバーする
pytestテストスイートが100%パス。依存関係: ランタイム依存関係はゼロ。
著者: Reuben Bowlby — LinkedIn | 履歴書
エンタープライズスケール
mcp-agent-kit は、HUMMBL デベロッパーエコシステムの一部です。エンタープライズグレードのマルチエージェントガバナンス(4段階のキルスイッチ、HMAC署名付き委任トークン、暗号監査バス)については、github.com/hummbl-io をご覧ください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseDqualityDmaintenanceA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.137MIT
- FlicenseNot gradedqualityDmaintenanceA minimal Python package for easily setting up and running MCP servers and clients, allowing functions to be automatically exposed as tools that LLMs can use with just 2 lines of code.22
- AlicenseNot gradedqualityBmaintenanceA dead simple MCP server for exposing your app functions to AI agents like Claude Desktop.445MIT
- FlicenseNot gradedqualityDmaintenanceEnables building and running MCP servers over streamable HTTP, exposing tools to AI assistants like Cursor, with examples of mounting multiple servers in FastAPI.
Related MCP Connectors
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hummbl-dev/mcp-agent-kit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server