LangGraph template for universal assistant using Model Context Protocol (MCP)
Top 60.1% on sourcepulse
This project provides a Universal Assistant template using LangGraph and the Model Context Protocol (MCP) for seamless integration of LLMs with external data sources and tools. It targets developers building AI applications requiring complex workflows, multi-agent interactions, and dynamic tool invocation, offering a standardized approach to context management.
How It Works
The Universal Assistant employs a multi-agent pattern orchestrated by LangGraph. A router graph, built using build_router_graph.py
, indexes MCP server capabilities (tools, prompts, resources) into a vector database for efficient routing. The assistant graph (assistant_graph.py
) then decides which agent to use, which in turn selects and invokes the appropriate tool on an MCP server. A generic MCP wrapper (mcp_wrapper.py
) utilizes a Strategy Pattern with an abstract MCPSessionFunction
to define common interfaces for operations like fetching routing information, retrieving tools, and executing tools, ensuring extensibility.
Quick Start & Requirements
pip install -U "langgraph-cli[inmem]"
and pip install -e .
within the cloned repository..env
with API keys.Highlighted Details
Maintenance & Community
The project is maintained by esxr. Further community or roadmap information is not detailed in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
Milvus Lite, used for the vector database, is not compatible with Windows; users must set up Milvus Server via Docker or adapt the retriever for alternative solutions. The README does not detail specific performance benchmarks or known bugs.
5 months ago
Inactive