Bring Community Organizing
to Pydantic AI
Learn how to connect NationBuilder to Pydantic AI and start using 12 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.
What is the NationBuilder MCP Server?
Connect your NationBuilder account to any AI agent and take full control of your community orchestration and campaign mobilization through natural conversation. NationBuilder is the leading software for political campaigns and non-profits, and this integration allows you to retrieve signup metadata, record donations, and monitor petition engagement directly from your chat interface.
What you can do
- Signup & Audience Orchestration — List all managed signups and retrieve detailed profile metadata programmatically to ensure your voter or donor database is always synchronized.
- Donation Lifecycle Management — Record and monitor financial contributions directly from the AI interface to track campaign fundraising goals.
- Petition & Advocacy Intelligence — Access and monitor active petitions and retrieve supporter metadata via natural language to drive better mobilization efficiency.
- Community Tagging Control — List and search through your nation's tags and custom people lists to maintain a clear overview of your segments using simple AI commands.
- Operational Monitoring — Track system responses and manage event metadata to ensure your campaign workflows are always optimized.
How it works
1. Subscribe to this server
2. Enter your NationBuilder Access Token (v2) and Nation Slug from your control panel
3. Start managing your nation from Claude, Cursor, or any MCP-compatible client
No more manual data entry for single donations or supporter checks. Your AI acts as a dedicated campaign manager or community coordinator.
Who is this for?
- Campaign Managers — quickly retrieve supporter summaries and monitor donation trends without switching apps.
- Non-profit Organizers — automate the recording of donations and track petition growth via natural conversation.
- Developers — integrate real-time community data and supporter metadata directly within the chat.
Built-in capabilities (12)
Add new person
Find person
Check connection
Get person info
List curated lists
List active petitions
List people/signups
List CMS sites
List contributions
List available tags
List calendar events
Add donation record
Why Pydantic AI?
Pydantic AI validates every NationBuilder tool response against typed schemas, catching data inconsistencies at build time. Connect 12 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
- —
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
- —
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your NationBuilder integration code
- —
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
- —
Dependency injection system cleanly separates your NationBuilder connection logic from agent behavior for testable, maintainable code
NationBuilder in Pydantic AI
NationBuilder and 3,400+ other MCP servers. One platform. One governance layer.
Teams that connect NationBuilder to Pydantic AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 3,400+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for NationBuilder in Pydantic AI
The NationBuilder MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 12 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Pydantic AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
NationBuilder for Pydantic AI
Every tool call from Pydantic AI to the NationBuilder MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can my AI automatically find the details for a specific signup by their email?
Yes! Use the search_signups tool. Provide the email address, and your agent will respond with complete metadata for the profile, including tags and unique ID in seconds.
How do I find my Nation Slug?
The Nation Slug is the unique prefix in your NationBuilder URL (e.g., if you log in at mynation.nationbuilder.com, your slug is mynation).
Does this support the NationBuilder API v2?
Yes, this MCP server is built specifically for the NationBuilder REST API v2, utilizing the modern JSON:API specification for all data interactions.
How does Pydantic AI discover MCP tools?
Create an MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.
Does Pydantic AI validate MCP tool responses?
Yes. When you define result types as Pydantic models, every tool response is validated against the schema. Invalid data raises a clear error instead of silently corrupting your pipeline.
Can I switch LLM providers without changing MCP code?
Absolutely. Pydantic AI abstracts the model layer. your NationBuilder MCP integration works identically with OpenAI, Anthropic, Google, or any supported provider.
MCPServerHTTP not found
Update: pip install --upgrade pydantic-ai
