Bring Community Organizing
to Mastra AI
Learn how to connect NationBuilder to Mastra 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 Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and NationBuilder tool infrastructure. Connect 12 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add NationBuilder without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every NationBuilder tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
NationBuilder in Mastra AI
NationBuilder and 3,400+ other MCP servers. One platform. One governance layer.
Teams that connect NationBuilder to Mastra 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 Mastra 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 Mastra 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 Mastra AI
Every tool call from Mastra 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 Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
