langchain-mcp-tools-py
MCP Serverhideya/langchain-mcp-tools-py
A lightweight Python library that bridges Model Context Protocol (MCP) servers with LangChain by converting MCP tools into LangChain-compatible tools.
Overview
This library provides a seamless utility function to initialize multiple MCP servers in parallel and wrap their exposed tools into standard LangChain BaseTool objects. It supports local and remote transports including stdio, Streamable HTTP, WebSockets, and legacy SSE, while managing robust concurrent resource cleanup.
Capabilities
- ▸Parallel initialization of multiple MCP servers
- ▸Conversion of MCP tools to LangChain BaseTool instances
- ▸Support for local stdio servers with environment variables and custom working directories
- ▸Support for remote Streamable HTTP, WebSocket, and SSE servers
- ▸Automatic transport selection and fallback mechanisms
- ▸Concurrent resource cleanup for server sessions
Best for
Integrating external MCP servers into LangChain agents and chains, Connecting Python-based LLM applications with standard tools like filesystem access, GitHub, or web search, Running custom local and remote tool servers alongside LangChain models
実タスクにどれだけ役立つか(機能の豊富さ・用途の明確さ)。 — AIによるcapabilities/use-cases解析
実装・指示の品質。 — AIによるSKILL.md/README解析
リポジトリがどれだけ活発に保守されているか。 — GitHub 最終push日時の新しさ
ドキュメントの充実度・分かりやすさ。 — README/独自要約の情報量
危険・不審な挙動が無いか。 — AIによるセキュリティレビュー
ありふれたラッパーではない独自性。 — AIによる独自性判定
コミュニティの採用度。 — GitHub Stars/Forks(対数スケール)
対応AIエージェントの広さ。 — AIによる対応エージェント判定
ライセンス不明/制限あり(Red)のSkillは総合スコアに0.85倍の補正を適用します。 ランキングはこのScoreのみで決まり、広告で変わりません。 算出方法の詳細 →
Security considerations
Executes local command-line tools specified in the server configuration dictionary (such as npx or uvx). Care must be taken with untrusted configuration inputs to avoid arbitrary command execution.
Categories
Summary and analysis are original content generated by AI Skills Rank. The skill's source text is not reproduced here — view it on the linked repository.