Skip to content
LangChain

openai ads mcp for LangChain

io.github.hypd-ai/openai-ads-mcp

Read-only MCP server for the OpenAI Ads API: campaigns, ad groups, ads, and insights.

client:LangChain transport:stdio runtime:npm

Install openai ads mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "openai-ads-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@hypd-ai/openai-ads-mcp"],
        }
})

tools = await client.get_tools()

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

openai ads mcp in other clients