contextual for LangChain
io.github.contextual-laboratories/contextual
Persistent memory for AI coding agents: local-first semantic search, dependency graphs, git history.
client:LangChain
transport:stdio
runtime:pypi
Install contextual in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"contextual": {
"transport": "stdio",
"command": "uvx",
"args": ["contextual-engine"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs