Current collected state Current
Observed since 20 Oct, 23:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Python library which wraps around Anthropic's low-level MCP client
A library that wraps low-level MCP client functionality, exposing it for easy usage as tools within a LangChain workflow. This enables seamless integration of remote MCP tools for language model workflows and agent applications.
mcpwrap/client.py — Basic utility to invoke a LangChain model with a set of tools.server_stub.py — Async abstraction (ServerSession) for connecting to and interfacing with an MCP server, exposing MCP tools for LangChain.multi_mcp_model.py — Orchestrates multiple MCP server sessions and integrates their toolsets for use by one BaseChatModel. Handles async invocation and batching of tool requests.llm_integration.py — Converts MCP tool schemas (JSON Schema) into dynamic, structured LangChain tools using Pydantic models.sample/from mcpwrap.server_stub import ServerSession
session = ServerSession(name="example", url="http://localhost:8080")
await session.initialize() # Async context
from langchain_core.language_models.chat_models import BaseChatModel
from mcpwrap.multi_mcp_model import MultiMcpModel
base_model = ... # Any supported BaseChatModel
mcp_model = MultiMcpModel(
base_model=base_model,
mcp_servers=[session] # Add as many as you like
)
await mcp_model.initialize()
results = await mcp_model.ainvoke(messages) # messages: List[BaseMessage]
pip install -r requirements.txtPRs, issues, and questions are welcome!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.3 | 2 Jul 2025 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6753017fdde7b7f8cb2ec5dd3dc0701552ea6d328dca7632a6f0100c9c0642c1