4,500+ servers built on MCP Fusion
Vinkius
NationBuilder logo
Vinkius
LangChain logo

How to Use the NationBuilder MCP in LangChain

Build LangChain pipelines that sync signup lists, verify donor records, and update campaign data across your entire stack.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

NationBuilder MCP on Cursor AI Code Editor MCP Client NationBuilder MCP on Claude Desktop App MCP Integration NationBuilder MCP on OpenAI Agents SDK MCP Compatible NationBuilder MCP on Visual Studio Code MCP Extension Client NationBuilder MCP on GitHub Copilot AI Agent MCP Integration NationBuilder MCP on Google Gemini AI MCP Integration NationBuilder MCP on Lovable AI Development MCP Client NationBuilder MCP on Mistral AI Agents MCP Compatible NationBuilder MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect NationBuilder MCP to LangChain

Create your Vinkius account to connect NationBuilder to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Chain NationBuilder lookups in LangChain

The `find_signup_by_email` tool retrieves a supporter profile using a single email address. Your LangChain agent runs this check first over the MCP connection before running any multi-step outreach sequence. If the email exists, the pipeline passes the profile ID to `get_signup_details` to pull their full history. This prevents your agent from creating duplicate profiles and keeps your voter file clean.

Automate donation tracking sequences

The `record_donation` tool writes contribution data directly to your campaign ledger. Your agent triggers this tool immediately after a LangChain chain processes an external payment webhook. Right after recording the payment, the agent uses `list_signup_tags` to verify the supporter's current tags. It then updates their profile to ensure they receive the correct donor newsletter.

Sync live campaign events to your database

The `list_upcoming_events` tool fetches scheduled rallies and town halls directly from your site database. Your agent pulls this event data to answer supporter queries about local campaign stops. Combining this with `list_nation_sites` allows your LangChain chain to verify which domain hosts the event registration page. You get clean, structured JSON ready for immediate routing.

Setup guide

Set up NationBuilder MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes NationBuilder tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

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

async with MultiServerMCPClient({
    "nationbuilder-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent NationBuilder transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by NationBuilder. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about NationBuilder MCP in LangChain

Your LangChain agent calls the server using the MultiServerMCPClient adapter. The agent inspects the available tools and dynamically decides which endpoints to execute based on your prompt.
Yes, you can chain these tools together. For example, your agent can run `list_nation_petitions` to find active campaigns and then use `create_new_signup` to register a new supporter who signed.
Use LangSmith tracing to watch the input and output of every tool call. You will see the exact payloads sent to `list_custom_people_lists` and can catch formatting errors instantly.
Run the `get_api_status` tool to check your connection health before starting a large batch operation. If the API limits are tight, configure your agent to pause between requests.
Your supporter emails, signup details, and donation records remain secure because Vinkius runs the server in an isolated sandbox. No data is stored on our servers, and credentials never leak to the LLM.

Start using the NationBuilder MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 12 tools

We've already built the connector for NationBuilder. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 12 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.