Skip to content
LangChain

CostPilot for LangChain

com.mcpgatepro/costpilot

Hosted MCP server for AWS cloud spend: service breakdowns, anomalies, savings and forecasts.

client:LangChain transport:streamable-http

Install CostPilot in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "costpilot": {
            "transport": "streamable_http",
            "url": "https://api.mcpgatepro.com/mcp/costpilot",
        }
})

tools = await client.get_tools()

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

CostPilot in other clients