
grll/mcpadapt
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
お気に入りのエージェントフレームワークで650+ MCPサーバーツールをアンロックしましょう。
概要
さらなる文脈、ガイド、APIの参照については、新しいドキュメントをご覧ください。 お気に入りのエージェントフレームワークで650+ MCPサーバーツールをアンロックしましょう。 Model Context Protocolは、Anthropicが導入したオープンソースプロトコルで、誰でも「MCPサーバー」としてツールやリソースを簡単に迅速に利用可能にできます。 リリース以来、650台以上のMCPサーバーが作成され、サポートされた「MCPクライアント」に多くのデータやツールへのアクセスが可能になりました。 このプロジェクトにより、MCPサーバーツールの呼び出しが任意のエージェントフレームワークから自動的に機能するようになっています。仮想的に650+ MCPサーバーツールへのアクセスを提供します。 glama.ai や smithery.ai を見て、エージェントがアクセスできる内容のイメージを得てください。 Smolagents 1.4.1以降は、ツールコレクションオブジェクトに統合されたmcpadaptを直接出荷します。つまり、smolagentsから直接利用できます: 各エージェントフレームワークには、無駄な依存関係で煩わしくないためのオプション依存関係のセットがあります。
概要(AI 翻訳)
さらなる文脈、ガイド、APIの参照については、新しいドキュメントをご覧ください。
お気に入りのエージェントフレームワークで650+ MCPサーバーツールをアンロックしましょう。
Model Context Protocolは、Anthropicが導入したオープンソースプロトコルで、誰でも「MCPサーバー」としてツールやリソースを簡単に迅速に利用可能にできます。
リリース以来、650台以上のMCPサーバーが作成され、サポートされた「MCPクライアント」に多くのデータやツールへのアクセスが可能になりました。
このプロジェクトにより、MCPサーバーツールの呼び出しが任意のエージェントフレームワークから自動的に機能するようになっています。仮想的に650+ MCPサーバーツールへのアクセスを提供します。
glama.ai や smithery.ai を見て、エージェントがアクセスできる内容のイメージを得てください。
取り付け手順
スモルエージェント
Smolagents 1.4.1以降は、ツールコレクションオブジェクトに統合されたmcpadaptを直接出荷しています。 つまり、スモルエージェントから直接使えるということです:
その他のフレームワーク
各エージェントフレームワークには、無駄な依存関係で煩わしくないためのオプション依存関係のセットがあります。 インストールコマンドでフレームワークを括弧内に付けて、希望するフレーバーを選びます。
現在サポートされているフレームワークは、smolagents、langchain、crewAI、google-genaiです。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCPAdapt
For more context, guides and API references visit our new documentation.
Unlock 650+ MCP servers tools in your favorite agentic framework.
Model Context Protocol is an open-source protocol introduced by Anthropic which allows anyone to simply and quickly make tools and resources available as “MCP Servers”.
Since its release more than 650 MCP servers have been created giving access to many data & tools to supported “MCP Client”.
This project makes calling any MCP servers tools seemless from any agentic framework. Virtually providing your agentic worfklow access to 650+ MCP servers tools.
Look at glama.ai or smithery.ai to give you an idea of what your agent could access.
Installation Instructions
Smolagents
Smolagents 1.4.1 and above directly ships with mcpadapt integrated in their tool collections object. It means you can directly use it from smolagents:
uv add smolagents[mcp]
Other Frameworks
Each agent framework has its own set of optional dependencies to not clutter with useless dependencies. You choose the flavor you want by adding your framework in brackets in the installation command.
# with uv
uv add mcpadapt[langchain]
# or with pip
pip install mcpadapt[langchain]
Framework supported at the moment: smolagents, langchain, crewAI, google-genai.
You can also add multiple framework comma separated if needed.
Usage
⚠️ Security Warning: When using MCP servers, especially over SSE (Server-Sent Events), be extremely cautious and only connect to trusted and verified servers. Always verify the source and security of any MCP server before connecting.
Smolagents
Since mcpadapt is part of smolagents simple use tool collection from smolagents like:
from mcp import StdioServerParameters
from smolagents.tools import ToolCollection
serverparams = StdioServerParameters(command="uv", args=["run", "src/echo.py"])
with ToolCollection.from_mcp(serverparams) as tool_collection:
... # enjoy your tools!
Other Frameworks
MCPAdapt adapt any MCP servers into tools that you can use right in your agentic workflow:
from mcp import StdioServerParameters
from mcpadapt.core import MCPAdapt
from mcpadapt.smolagents_adapter import SmolAgentsAdapter
with MCPAdapt(
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →