# LangChain and LangGraph

langchain-mcp-adapters turns the server into LangChain tools.

API key

## Setup

1.  1
    
    Load the tools and give them to any agent.
    
    ```python
    from langchain_mcp_adapters.client import MultiServerMCPClient
    import os
    
    client = MultiServerMCPClient({
        "zomler": {
            "transport": "streamable_http",
            "url": "https://api.zomler.com/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['ZOMLER_API_KEY']}"},
        }
    })
    tools = await client.get_tools()
    ```
    

## What you get

One tool per platform, plus `capabilities` and `check_balance`, at `https://api.zomler.com/mcp`. Every answer is [the envelope](https://zomler.com/docs/api/responses): what was measured, when, what was left out and why, and what it cost. Fresh fetches spend [credits](https://zomler.com/docs/api/credits); anything already held is free.

Keys are created under [API keys](https://app.zomler.com/api-keys) in the dashboard, where each one's calls and spend are listed. Revoking a key stops this client on its next call. The same key also calls the [REST API](https://zomler.com/docs/api).

[All clients](https://zomler.com/docs/mcp)

---

Source: https://zomler.com/docs/mcp/langchain
