Skip to content
LangChain

CodePic for LangChain

io.github.abelce/codepic

AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images

client:LangChain transport:streamable-http tools:7

Install CodePic in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "codepic": {
            "transport": "streamable_http",
            "url": "https://codepic.cc/api/mcp/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

What LangChain can do once it is connected

CodePic in other clients