Skip to content
LangChain

PNCP for LangChain

io.github.mcp-dir/pncp-mcp

Search Brazilian government tenders and public procurement (PNCP): find notices and auctions by keyw

client:LangChain transport:streamable-http tools:19

Install PNCP in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pncp-mcp": {
            "transport": "streamable_http",
            "url": "https://api.mcp.ai/p_pncp",
        }
})

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

PNCP in other clients