Connect AgentDeals MCP tools to LangChain agents via langchain-mcp-adapters. Search 1,600+ developer deals, compare vendors, and track pricing changes from Python.

Using AgentDeals with LangChain

LangChain is the most popular Python framework for building LLM-powered applications. With langchain-mcp-adapters, you can connect any MCP server — including AgentDeals — as a tool provider for your LangChain agents.

AgentDeals provides 4 MCP tools with data on 1,580+ developer deals across 65 categories: search_deals, compare_vendors, track_changes, and plan_stack.

Quick Setup

pip install langchain-mcp-adapters langchain-openai langgraph

from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

model = ChatOpenAI(model="gpt-4o")

async with MultiServerMCPClient(
    {
        "agentdeals": {
            "url": "https://agentdeals.dev/mcp",
            "transport": "streamable_http",
        }
    }
) as client:
    tools = client.get_tools()
    agent = create_react_agent(model, tools)

    result = await agent.ainvoke(
        {"messages": [{"role": "user", "content": "Find free database hosting options"}]}
    )
    print(result["messages"][-1].content)

This connects to the remote AgentDeals server at https://agentdeals.dev/mcp — no npm or local install needed. The MultiServerMCPClient handles the MCP session lifecycle automatically.

You can also run AgentDeals locally via stdio transport:

"agentdeals": {
    "command": "npx",
    "args": ["-y", "agentdeals"],
    "transport": "stdio",
}

Example Workflows

1. Search and compare free database tiers

Use the agent to search for free databases, then compare the top options side by side.

result = await agent.ainvoke(
    {"messages": [{"role": "user", "content":
        "Search for free database hosting options, then compare "
        "Supabase vs Neon vs PlanetScale. Show free tier limits "
        "and risk levels."
    }]}
)
print(result["messages"][-1].content)

2. Track pricing changes in your stack

Monitor recent pricing changes for the vendors you use — catch free tier removals before they affect you.

result = await agent.ainvoke(
    {"messages": [{"role": "user", "content":
        "Track recent pricing changes for Vercel, Supabase, and "
        "Cloudflare. Are any free tiers at risk?"
    }]}
)
print(result["messages"][-1].content)

3. Plan a free infrastructure stack

Get stack recommendations with cost projections at different scale points.

result = await agent.ainvoke(
    {"messages": [{"role": "user", "content":
        "Plan a free stack for a SaaS MVP: I need hosting, "
        "database, auth, email, and monitoring. Estimate costs "
        "at 1K, 10K, and 100K monthly active users."
    }]}
)
print(result["messages"][-1].content)

Available Tools

AgentDeals exposes 4 MCP tools. Your LangChain agent can call any of them:

search_deals

Search 1,580+ deals by keyword, category, or vendor

compare_vendors

Side-by-side comparison of free tiers, limits, and risk

track_changes

Track pricing changes, removals, and new deals

plan_stack

Stack recommendations with cost projections at scale

Full tool documentation: /api/docs · Setup guide for more clients

Related Guides

Get this data in your AI editor

Use AgentDeals tools directly in your AI editor. Works with Claude Desktop, Cursor, Cline, Windsurf, and any MCP-compatible client.

claude mcp add agentdeals -- npx -y agentdeals