On this page
Guides / Use Meteor from your agent framework

Use Meteor from your agent framework

Connect your LangChain, OpenAI Agents SDK or Vercel AI SDK agent to Meteor's MCP server with your API key: WhatsApp, CRM and connectors.

Updated View .md

If you already build your agent with a framework, you don't have to wire Meteor's API endpoint by endpoint. The OpenAI Agents SDK, LangChain and the Vercel AI SDK ship an MCP client that connects to Meteor's remote server over streamable HTTP, with your API key in the Authorization header. Your agent gets the met_* tools —WhatsApp, CRM, scheduling, collections and your workspace's connectors— filtered by your key's scopes.

If what you are building is a product with agents inside, AI agents for SaaS explains how much platform you skip.

What you need

All three frameworks use the same values:

ValueSetting
Server URLhttps://api.met.meteor.com.co/api/v1/mcp
TransportStreamable HTTP
HeaderAuthorization: Bearer met_live_…
Scopesmcp:use to open the session, plus each tool's own: contacts:read for met_list_contacts, channels:read for met_list_channels

The examples list the tools, call a read tool (met_list_contacts, which searches the CRM's contacts) and hand the server to an agent so it decides on its own. The full list is in MCP server capabilities.

OpenAI Agents SDK (Python)

pip install openai-agents

MCPServerStreamableHttp takes the URL and the headers inside params. With async with it connects on entry and closes on exit.

import asyncio
import os

from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp


async def main() -> None:
    async with MCPServerStreamableHttp(
        name="Meteor",
        params={
            "url": "https://api.met.meteor.com.co/api/v1/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['MET_API_KEY']}"},
            "timeout": 30,
        },
        cache_tools_list=True,
    ) as meteor:
        tools = await meteor.list_tools()
        print([t.name for t in tools])  # the tools your key allows

        contacts = await meteor.call_tool("met_list_contacts", {"search": "Ana", "limit": 5})
        print(contacts.content)

        agent = Agent(
            name="Assistant",
            instructions="Use Meteor's tools to answer.",
            mcp_servers=[meteor],
        )
        result = await Runner.run(agent, "Which channels do I have connected?")
        print(result.final_output)


asyncio.run(main())

OpenAI Agents SDK (TypeScript)

npm install @openai/agents

MCPServerStreamableHttp takes the URL in url and the headers in requestInit, the fetch options for every request.

import { Agent, run, MCPServerStreamableHttp } from '@openai/agents';

const meteor = new MCPServerStreamableHttp({
  name: 'Meteor',
  url: 'https://api.met.meteor.com.co/api/v1/mcp',
  requestInit: { headers: { Authorization: `Bearer ${process.env.MET_API_KEY}` } },
  cacheToolsList: true,
});

await meteor.connect();
try {
  const tools = await meteor.listTools();
  console.log(tools.map((t) => t.name)); // the tools your key allows

  const contacts = await meteor.callTool('met_list_contacts', { search: 'Ana', limit: 5 });
  console.log(contacts);

  const agent = new Agent({
    name: 'Assistant',
    instructions: "Use Meteor's tools to answer.",
    mcpServers: [meteor],
  });
  const result = await run(agent, 'Which channels do I have connected?');
  console.log(result.finalOutput);
} finally {
  await meteor.close();
}

LangChain and LangGraph (Python)

Since langchain 1.4.0 the MCP client ships in the package, under langchain.mcp (LangChain's documentation marks it as beta). The headers go on FastMCP's streamable HTTP transport, which it uses underneath.

pip install "langchain[mcp]>=1.4.0"
import asyncio
import os

from fastmcp.client import Client
from fastmcp.client.transports import StreamableHttpTransport
from langchain.agents import create_agent
from langchain.mcp import MCPAdapter


async def main() -> None:
    transport = StreamableHttpTransport(
        "https://api.met.meteor.com.co/api/v1/mcp",
        headers={"Authorization": f"Bearer {os.environ['MET_API_KEY']}"},
    )
    async with MCPAdapter(Client(transport)) as meteor:
        tools = await meteor.list_tools()  # LangChain tools
        print([t.name for t in tools])

        list_contacts = next(t for t in tools if t.name == "met_list_contacts")
        print(await list_contacts.ainvoke({"search": "Ana", "limit": 5}))

        agent = create_agent(os.environ["MODEL"], tools)  # the model your agent already uses
        result = await agent.ainvoke(
            {"messages": [{"role": "user", "content": "Which channels do I have connected?"}]}
        )
        print(result["messages"][-1].content)


asyncio.run(main())

The tools work while the async with block is still open: everything the agent uses goes inside it. create_agent builds a LangGraph graph; if you build your own, the same tools go to your tool node.

If your project uses langchain-mcp-adapters (versions before 1.4.0), you connect with MultiServerMCPClient, the http transport and the headers in the same entry:

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient(
    {
        "meteor": {
            "transport": "http",
            "url": "https://api.met.meteor.com.co/api/v1/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['MET_API_KEY']}"},
        },
    }
)
tools = await client.get_tools()

LangChain publishes a guide to move from langchain-mcp-adapters to langchain.mcp (link in the sources, below).

Vercel AI SDK (TypeScript)

npm install ai @ai-sdk/mcp

createMCPClient takes an http transport (streamable HTTP) with the URL and the headers.

import { createMCPClient } from '@ai-sdk/mcp';

const meteor = await createMCPClient({
  transport: {
    type: 'http',
    url: 'https://api.met.meteor.com.co/api/v1/mcp',
    headers: { Authorization: `Bearer ${process.env.MET_API_KEY}` },
    redirect: 'error',
  },
});

try {
  const { tools } = await meteor.listTools();
  console.log(tools.map((t) => t.name)); // the tools your key allows

  const contacts = await meteor.callTool({
    name: 'met_list_contacts',
    arguments: { search: 'Ana', limit: 5 },
  });
  console.log(contacts.content);
} finally {
  await meteor.close();
}

To let the model decide, meteor.tools() returns the same tools in the AI SDK's format and you pass them in tools to generateText or streamText. Close the client when the response ends:

import { streamText } from 'ai';

const result = streamText({
  model: yourModel, // the model your agent already uses
  tools: await meteor.tools(),
  prompt: 'Which channels do I have connected?',
  onEnd: async () => {
    await meteor.close();
  },
});

Good to know in all three

MCP or the runs API: who decides

MCP server (this guide)Runs API
Who decides what to doYour agent, with your modelA Met in your workspace
What you provideThe agent, the model and the loopThe question or the task
What Meteor providesThe met_* toolsThe whole Met: instructions, skills, memory and tools
Start atMCP serverRun Mets

Use MCP when you already have an agent and want to give it Meteor's WhatsApp, CRM and connectors. Use the runs API when the work can be done by a Met that already serves your business and your code only needs to ask and read the result. The two combine: your agent can run a Met with met_run_agent. To see everything you get as an agent builder, start at For chatbot and AI agent builders.

Sources

Checked on 22-Nov-2026 against each framework's official documentation: