virtuous-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@virtuous-mcpshow me contacts who donated in the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Virtuous CRM+ MCP Server
An MCP server, built with FastMCP, that lets an AI assistant work with Virtuous CRM+: query and read data freely, and—only with explicit user confirmation—create, update, archive, or delete data.
It provides complete coverage of the entire Virtuous API (all 291 endpoints across 39 resource groups) through a small set of convenience tools plus a generic discovery + call layer, so any endpoint can be reached without needing a separate tool per endpoint.
Safety model: reads are free, writes require confirmation
Reading (querying, searching, looking up, listing reference data) runs freely.
Every tool that changes data is "mutating" and is guarded in three layers:
Instructions — the server and each mutating tool tell the model it must describe the exact change and get explicit user approval before acting.
confirmflag — every mutating tool takesconfirm(defaultfalse). Withconfirm=falsethe tool makes no API call and returns a preview of what it would do, so the model can show the user and ask.Client backstop — the HTTP client raises
ConfirmationRequiredif a write is ever attempted without explicit confirmation, so an accidentalconfirm=trueis the only way a write can happen.
A request is classified as a read if it's a GET, or a POST to a
/Query, /QueryOptions, /Search, /Find, or /Proximity path. Everything
else is a write.
Related MCP server: mcp-creatio
Operational protocols
The HTTP layer is aligned with Virtuous's documented operational behavior:
Connection pooling — a single
httpx.AsyncClientis reused for the life of the process (per base URL), so TLS/keep-alive connections are reused instead of re-established on every call.Rate limits — Virtuous enforces an org-wide budget (documented at 5,000 requests/hour) shared by every API key/integration in the org, and returns
X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reseton every response. The client records the latest values; callget_rate_limit_statusto inspect remaining budget.Retries + backoff — transient
429and5xxresponses are retried (up to 3 times).429waits honorRetry-After/X-RateLimit-Reset; otherwise an exponential backoff with jitter is used.Pagination — query endpoints cap at 1000 records/call;
query_allauto-pages (with a hard ceiling) so you don't manually loopskip/take.Bulk writes —
create_batchposts many contacts/gifts in one request via the recommended batch endpoints, conserving the shared rate budget.
Tools
Full-API discovery + generic call
The entire API is reachable through these. Use discovery to find the exact
method + path, then call_endpoint to invoke it.
Tool | Purpose |
| List all 39 resource groups and their read/write endpoint counts. |
| Discover any endpoint (filter by resource, text search, or |
| Full metadata + parameters for one endpoint. |
| Invoke any endpoint. Reads run freely; writes obey the confirmation gate. |
call_endpoint resolves :placeholders in the path from path_params (e.g.
/api/Contact/:contactId + {"contactId": 123}), and works even for endpoints
not in the bundled registry.
Read tools (no confirmation)
Tool | Purpose |
| List queryable object types + reference-data keys. |
| Discover queryable fields, data types, and allowed operators for an object. |
| Run a filtered bulk query (single page). |
| Auto-paginate a query up to |
| Fetch a single record by id. |
| Look up one contact. |
| Fuzzy free-text contact search. |
| All gifts for a contact. |
| Notes for a contact. |
| Individuals that make up a contact. |
| Lookup lists: contact/gift/project/task types, tags, custom fields, org groups, etc. |
| Current organization + the API key's permissions. |
| Latest observed rate-limit headers (remaining org-wide budget + reset time). |
| Escape hatch for arbitrary read-only |
| Auto-page read-only |
Write tools (MUTATING — require confirm=true after explicit user approval)
Tool | Purpose |
| Recommended way to import a single Contact or Gift (matched/validated). |
| Bulk-import many Contacts or Gifts in one request (rate-limit-friendly). |
| Create a record (e.g. ContactNote, ContactTag, Task, Relationship). |
| Update a record (PUT). |
| Archive/unarchive a record. |
| Destructive delete. |
| Escape hatch for any other write (cancel recurring gift, write off pledge, send email, toggle webhook, etc.). |
With confirm omitted/false, write tools (and call_endpoint on a write
endpoint) return a confirmation_required preview and change nothing.
Note:
call_endpointis the universal way to reach any write endpoint and is subject to the same confirmation gate. The dedicated write tools above are just ergonomic shortcuts for the most common operations.
How queries work
A query body is made of groups. Conditions within a group are AND-ed;
separate groups are OR-ed. Each condition is:
{ "parameter": "<field name>", "operator": "<operator>", "value": "<value>" }Use get_query_options to get the exact parameter and operator strings for
an object. Example: contacts created on/after 2024-01-01, sorted by id desc:
{
"object_type": "Contact",
"groups": [
{ "conditions": [
{ "parameter": "Create Date", "operator": "GreaterThanOrEqual", "value": "01/01/2024" }
] }
],
"sort_by": "Id",
"descending": true,
"take": 100
}Query endpoints return at most 1000 records per call; use skip/take to
page manually, or query_all to auto-paginate up to a max_records ceiling.
For non-query GET endpoints that expose the same skip/take pattern (for
example contacts by tag or organization-group members), use
read_paged_request.
Tasks & reminders (non-obvious gotchas)
These are surfaced at runtime via describe_endpoint (notes + body_params)
and in the server instructions, but documented here too:
Create a task with
POST /api/Task. The assignee field isownerEmail(the user's email) — notowner,ownerId, orassignedTo. A wrong key is silently ignored and the task is created unassigned, and the success response does not echoownerEmailback (its absence is not a failure).Tasks have no update or delete endpoint. To remove/resolve a task, use the Reminder endpoints:
PUT /api/Reminder/Dismissed/{id}(dismiss ≈ delete) orPUT /api/Reminder/Completed/{id}(mark resolved). There is no un-dismiss / reactivate endpoint via the API (UI only).To check if tasks are dismissed/resolved, query
Taskwith theResolvedfilter (IsTrue= dismissed/completed,IsFalse= active). The query result does not expose the owner or an explicit resolved field; theAssigned Userfilter expects an internal user id (not an email), and no users-list endpoint is exposed.
Setup
Get a Virtuous API key: in Virtuous, Settings → All Settings → Connectivity → Application Keys → Create an Application Key.
Copy
.env.exampleto.envand setVIRTUOUS_API_KEY.
Install uv
This project is managed with uv, a fast Python
package and project manager. Install it once in your environment:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"uv is also available via other package managers if you prefer:
# Homebrew (macOS)
brew install uv
# pipx
pipx install uvAfter installing, restart your shell (or follow the printed instructions) so the
uv command is on your PATH, then verify:
uv --versionuv manages the virtual environment and can even provision a compatible Python
(3.10+) for you, so you don't need to set up Python separately.
Install dependencies
uv syncThis creates a virtual environment and installs the exact dependencies pinned in
uv.lock.
Run
VIRTUOUS_API_KEY=your_key uv run virtuous-mcpThe server speaks MCP over stdio.
Use with an MCP client
Every client below uses the same server entry — only the file it lives in (and the surrounding scope) changes:
{
"mcpServers": {
"virtuous-mcp": {
"command": "uv",
"args": ["run", "--directory", "/Users/cole.j.cantu/Programs/custom-mcp/virtuous-mcp", "virtuous-mcp"],
"env": { "VIRTUOUS_API_KEY": "your_api_key_here" }
}
}
}Cursor (global / all projects)
Add it to your global Cursor config so it's available in every project:
macOS / Linux:
~/.cursor/mcp.jsonWindows:
%USERPROFILE%\.cursor\mcp.json
Create the file if it doesn't exist and paste the JSON block above (top-level
mcpServers key). For a single project instead, use .cursor/mcp.json in that
project's root — project config takes precedence over global if both define a
server with the same name. Reload Cursor (or toggle the server in
Settings → Tools & Integrations → MCP) after saving.
Claude Code (user scope / all projects)
User scope makes the server available to you across all projects. Two ways:
CLI (recommended):
claude mcp add virtuous-mcp \
--scope user \
--env VIRTUOUS_API_KEY=your_api_key_here \
-- uv run --directory /Users/cole.j.cantu/Programs/custom-mcp/virtuous-mcp virtuous-mcp--scope user writes to ~/.claude.json under the top-level mcpServers
key. (Other scopes: project → .mcp.json in the repo root, shared with
everyone who clones it; local (default) → your private entry for the current
project only.) Everything after -- is the command Claude Code runs to launch
the server.
Edit ~/.claude.json directly:
Add the server under the top-level mcpServers object (this is what makes
it user-scoped — not nested under a specific project's entry):
{
"mcpServers": {
"virtuous-mcp": {
"command": "uv",
"args": ["run", "--directory", "/Users/cole.j.cantu/Programs/custom-mcp/virtuous-mcp", "virtuous-mcp"],
"env": { "VIRTUOUS_API_KEY": "your_api_key_here" }
}
}
}~/.claude.json also holds other Claude Code settings, so merge into the
existing mcpServers object rather than overwriting the file. Restart your
Claude Code session afterward so it re-reads the config.
Claude Code scope reference
Scope | Where it's stored | Available to |
|
| You, this project only |
|
| Anyone who clones the repo |
|
| You, all projects |
Claude Desktop
Same JSON block in Claude Desktop's claude_desktop_config.json (under
mcpServers).
Configuration
Env var | Required | Default | Description |
| yes | — | Bearer API key / Application Key. |
| no |
| API base URL. |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/colecantu904/virtuous-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server