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 5 MCP tools with data on 1,498+ developer deals across 60 categories: search_deals, plan_stack, compare_vendors, track_changes, and get_referral_code.

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 free tier coverage.

result = await agent.ainvoke(
    {"messages": [{"role": "user", "content":
        "Plan a free stack for a SaaS MVP: I need hosting, "
        "database, auth, email, and monitoring. Check free tier coverage."
    }]}
)
print(result["messages"][-1].content)

Available Tools

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

search_deals

Find free tiers, browse categories, get vendor details with alternatives. Filter by category, eligibility, or keyword.

plan_stack

Get stack recommendations, free-tier checks, or a full infrastructure audit for your project.

compare_vendors

Compare 2 vendors side-by-side or check a single vendor's pricing risk.

track_changes

Track pricing changes, upcoming expirations, and new deals. Weekly digest with no params.

get_referral_code

Look up the referral link we hold for a vendor, with the conditions attached to it. We hold codes for a handful of vendors.

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

Related Guides