Bloomerang MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Build a Bloomerang connector for Claude
A tutorial by One Giant Leap. MIT licensed.
This tutorial walks through building and deploying a remote MCP server that connects Bloomerang (the nonprofit donor CRM) to Claude as a custom connector. When you're done, your staff can ask Claude things like:
"List gifts from the last 30 days, split recurring vs one-time, and tell me which donors still need a thank-you card."
"Here's a photo of tonight's sign-in sheet. Log attendance for Volunteer Orientation."
Claude answers from live Bloomerang data, in Claude.ai, Claude Desktop, mobile and Claude Code.
The server runs as a Cloudflare Worker (the free plan is enough). Staff sign in with their Google Workspace account, each person gets a role (admin, attendance or read), and the Bloomerang API key stays in Cloudflare. Claude never sees it.
Contents
Related MCP server: Salesforce MCP Server
How it works
Claude (web, desktop, mobile, Code)
│ MCP over HTTPS + OAuth 2.1 token
▼
Cloudflare Worker ─────────────► Google sign-in (who is this person?)
• OAuth provider (/authorize, /token, /register)
• MCP endpoint (/mcp)
• Role check + audit log on every tool call
│ X-API-KEY (Worker secret)
▼
Bloomerang REST API v2Claude ↔ Worker: Claude's custom connectors speak MCP and authenticate with OAuth 2.1.
@cloudflare/workers-oauth-providerturns the Worker into an OAuth server and supports Dynamic Client Registration (DCR), so Claude registers itself and you don't copy client IDs around.Who is signing in: the Worker hands sign-in to Google, then checks that the account is verified and belongs to your Workspace domain. Only the email and name are kept. The Google token is discarded.
What they can do:
ACCESS_POLICYmaps each email to a role. Every tool checks the role before it touches Bloomerang. Someone who isn't listed can sign in but gets no data.Bloomerang: one API key, stored as a Worker secret. Bloomerang keys can't be scoped, so the Worker is the only thing that limits what can be read or written.
The code is based on Cloudflare's
remote MCP server with Google OAuth
demo, with the stateless createMcpHandler from the agents package.
Project layout
File | What it does |
| The MCP server: tool definitions, role checks, audit logging, OAuth wiring |
| Small Bloomerang v2 client (retries on 429/5xx) and helpers that trim records to what Claude needs |
|
|
| CSRF, state and cookie helpers from the Cloudflare demo |
| Upstream OAuth helpers and the |
| Worker config: name, vars, KV binding |
| Types for the vars, bindings and secrets |
What you need
Bloomerang with an admin user who can create API keys.
Google Workspace for your staff. Any Google sign-in works with small changes, but domain enforcement assumes Workspace.
Cloudflare account. The free plan works.
Claude Team or Enterprise if you want to add the connector once for the whole organization (an owner does this). On individual plans each person adds the custom connector themselves.
Node.js 20+ and a terminal.
There is no Bloomerang sandbox. Everything you test touches live data. Run the read tools first, and test writes on a test record you delete afterwards.
Step 1: Get the code
git clone https://github.com/Giant-Leap-ai/bloomerang-mcp-connector.git
cd bloomerang-mcp-connector
npm install
npm run type-checkStep 2: Create a Bloomerang API key
In Bloomerang, open Settings → Integrations → API Keys (as a Bloomerang administrator).
Create a v2 private API key. Name it after the connector, e.g. "Claude connector".
Keep the page open. You'll paste the key straight into Cloudflare in Step 6. Don't put it in a file, a chat or an email.
The key can read and write everything in your database. That's why every guard in this project lives in the Worker.
Step 3: Create the Cloudflare Worker
npx wrangler login # approve in the browser
npx wrangler whoami # note your account IDPick your Worker name now. It's bloomerang-mcp in wrangler.jsonc. Your URL will be:
https://bloomerang-mcp.<your-subdomain>.workers.devFind <your-subdomain> in the Cloudflare dashboard under Workers & Pages (shown as your
workers.dev subdomain). Set or rename it now: the URL ends up in Google, in Claude and in every
token, and changing it later means everyone reconnects.
Step 4: Create a Google OAuth client
In Google Cloud Console, signed in as a Workspace admin:
Create a project, e.g. "Claude Bloomerang Connector".
APIs & Services → OAuth consent screen: choose Internal so only your Workspace can use it. Scopes:
openid,email,profile.Credentials → Create credentials → OAuth client ID → Web application.
Authorized redirect URI:
https://bloomerang-mcp.<your-subdomain>.workers.dev/callbackFor local development, also add
http://localhost:8788/callback.Keep the client ID and secret open for Step 6.
Step 5: Configure wrangler.jsonc
Open wrangler.jsonc and change every line marked TODO:
Setting | Set it to |
| Optional. Your Cloudflare account ID, so deploys can't land in the wrong account |
| Your organization's name (shown on the sign-in screen) |
|
|
| Your Google Workspace domain, e.g. |
| JSON mapping each staff email to |
Roles:
Role | Can do |
| All read tools: search, records, timelines, gifts, thank-you queue |
| Search, attendance preview/commit, create people and organizations, fix names, link people to organizations. No gift data |
| Everything, plus |
Example:
"ACCESS_POLICY": "{\"director@yournonprofit.org\":\"admin\",\"events@yournonprofit.org\":\"attendance\",\"board@yournonprofit.org\":\"read\"}"Step 6: Add storage and secrets
The Worker uses one KV namespace for OAuth grants and short-lived write previews:
npx wrangler kv namespace create OAUTH_KV
# paste the printed id into wrangler.jsonc, replacing REPLACE_WITH_KV_IDThen set four secrets. Each command prompts for the value, so it never lands in your shell history:
npx wrangler secret put GOOGLE_CLIENT_ID
npx wrangler secret put GOOGLE_CLIENT_SECRET
npx wrangler secret put BLOOMERANG_API_KEY
openssl rand -hex 32 | npx wrangler secret put COOKIE_ENCRYPTION_KEYIf someone else holds a value (for example, a Bloomerang admin holds the API key), they can add it themselves in the Cloudflare dashboard: Worker → Settings → Variables and Secrets → Add → Secret.
wrangler secret put only works once the Worker exists. If it says the Worker doesn't exist yet, run
npx wrangler deploy once first, then add the secrets.
npx wrangler secret list # expect all fourStep 7: Deploy and smoke-test
npm run type-check
npx wrangler deployCheck that the OAuth plumbing is up:
BASE=https://bloomerang-mcp.<your-subdomain>.workers.dev
curl -s -o /dev/null -w "%{http_code}\n" -X POST $BASE/mcp # expect 401 (no token yet)
curl -s $BASE/.well-known/oauth-protected-resource | head -c 400 # resource should be $BASE/mcp
curl -s $BASE/.well-known/oauth-authorization-server | head -c 400 # authorize / token / register endpointsOptional: run npx @modelcontextprotocol/inspector, connect to $BASE/mcp, sign in, and call whoami.
Running locally
cp .dev.vars.example .dev.vars # fill in real values; .dev.vars is git-ignored
npm run dev # http://localhost:8788/mcpChange MCP_RESOURCE to http://localhost:8788/mcp while you test locally, and change it back before you deploy.
Step 8: Add the connector in Claude
Organization-wide (Team/Enterprise owner):
Organization settings → Connectors → Add → Custom → Web.
Name: e.g.
Bloomerang. URL:https://bloomerang-mcp.<your-subdomain>.workers.dev/mcp.OAuth client: Register automatically (DCR). Leave the other auth fields empty.
Set tool permissions. A sensible default:
Always allow:
whoami,search_constituents,get_constituent,get_constituent_timeline,list_interactions,list_recent_gifts,thank_you_queue,list_constituents_by_field,preview_attendance,preview_constituent_changesNeeds approval:
commit_attendance,commit_constituent_changes,log_interaction
You can't edit auth settings after you add the connector. Changing them means removing and re-adding it, and everyone reconnects.
Each person: Customize → Connectors → Bloomerang → Connect, sign in with their work Google account, and approve.
Step 9: Try it
"Use Bloomerang whoami." Checks the sign-in and shows your role and tools.
"Using Bloomerang, list gifts from the last 30 days, split recurring vs one-time." Spot-check one gift in Bloomerang.
"Who still needs a thank-you card from the last two weeks?"
Attendance dry run: "Preview attendance for Volunteer Orientation on 2026-01-15 for: [two real names]." Check the matches and don't commit yet.
One real write on a test record: approve the prompt, confirm it in Bloomerang, then delete the test interaction there.
The tools
Read
Tool | What it returns |
| Signed-in email, role, and which tools that role can use |
| People, organizations and households by name, email or phone |
| One record: names, job title, employer, relationships, custom fields (contact details for admins) |
| Everyone with a given custom field value, e.g. Donor level = Gold |
| Recent transactions, interactions, notes and tasks |
| Recent interactions for one constituent |
| Gifts in the last N days with donor, amount, fund, recurring vs one-time, and totals |
| Unacknowledged, non-refunded gifts grouped by donor |
Write (preview → commit)
Writes happen in two steps. A preview_* tool writes nothing to Bloomerang: it matches names, runs
duplicate checks, and saves a plan in KV for 60 minutes under a preview_id. Claude shows the plan,
the user confirms, and the matching commit_* tool applies it. A preview can only be committed once, and only by the person who created it.
Tool | What it does |
| Matches attendee names (e.g. from a photo of a sign-in sheet) and logs one "Attended " interaction each. First-time attendees can be logged as "First " |
| Creates individuals and organizations (with Bloomerang's duplicate check), fixes prefix, name, suffix, job title or employer, and links people to organizations |
| Admin only: logs a single interaction on one constituent |
Every interaction the connector writes ends with "Logged via Claude by " in its note.
Deliberately not included: deletes, merges, editing or removing existing relationships, other field edits, transaction writes, and a raw API passthrough. Add them only if you decide you need them.
Adding your own tool
Tools are registered in createServer() in src/index.ts. The pattern:
Add a method to the
Bloomerangclass insrc/bloomerang.tsfor the endpoint you need (see the Bloomerang REST API reference).Register the tool with a clear description. Claude decides when to call a tool from that description.
Wrap the handler in
guarded(ctx, name, ROLES, fn). It adds the role check, the audit log line and error handling.
server.registerTool(
"list_funds",
{
title: "List funds",
description: "Lists active Bloomerang funds (id and name).",
inputSchema: z.object({}),
annotations: { readOnlyHint: true, openWorldHint: true },
},
guarded<{}>(ctx, "list_funds", READ_ROLES, async (_args, bl) => {
const res = await bl.funds(); // add funds() to src/bloomerang.ts
return ok((res.Results ?? []).map((f: any) => ({ id: f.Id, name: f.Name })));
}),
);Tips:
Return only the fields Claude needs. The
summarize*helpers insrc/bloomerang.tskeep phone numbers, addresses and scores out unless they're asked for. Tool results are capped at roughly 150k characters.Mark read tools
readOnlyHint: trueand write toolsdestructiveHint: true. Claude shows these to the user.For any write, copy the preview → commit pattern instead of writing directly.
whoamilists new tools on its own. Add them to the connector's permission settings in Claude too.
Security model
Secrets live only in Cloudflare. Nothing in the repo, nothing in Claude.
Sign-in is Google OAuth limited to one Workspace domain. The
hdparameter sent to Google is only a hint, so/callbackchecks the domain andverified_emailitself.Access is per email in
ACCESS_POLICY, checked on every tool call. Accounts that aren't listed get no data.Tokens are bound to
MCP_RESOURCE, so they only work for this server.Writes go through preview → commit, are single-use, can only be committed by the person who created the preview, and recheck the record before saving (a rename is skipped if someone changed the record in Bloomerang since the preview).
Logs (Workers Logs) record the user, tool and counts, never donor data.
Limits of the design: one shared Bloomerang key means Bloomerang's own audit trail shows the API key, not the person. The Worker's logs and the "Logged via Claude by" note fill that gap. If you need per-user Bloomerang permissions, look at Bloomerang's OAuth (apps are registered with Bloomerang, tokens last 1 hour, refresh tokens 90 days).
Troubleshooting
Field names come from Bloomerang's v2 API spec. Bloomerang setups vary, so check these on your first run:
Symptom | Check |
|
|
Donor names are missing | The pipe-separated |
| Channel / Purpose spellings ( |
Prefix or suffix rejected | It must exactly match an entry in Bloomerang's prefix/suffix settings ( |
A relationship comes out reversed | The commit result's |
Contact details warning after a rename | Bloomerang's PUT may not keep fields you leave out. The tool rereads the record and warns you. Check it in Bloomerang |
Sign-in rejected | Workers Logs show |
"doesn't have access" | The email isn't in |
Logs: Cloudflare dashboard → your Worker → Logs, or npx wrangler tail.
Operations
Change who has access: edit
ACCESS_POLICY, thennpx wrangler deploy.Rotate the Bloomerang key: create a new key in Bloomerang,
npx wrangler secret put BLOOMERANG_API_KEY, then deactivate the old key.Kill switch: delete the
BLOOMERANG_API_KEYsecret, or deactivate the key in Bloomerang.Changing the URL (Worker name or subdomain): update
MCP_RESOURCEand the Google redirect URI, then re-add the connector in Claude. Everyone reconnects.Redeploy without a terminal: connect the repo to Workers Builds so pushes to
maindeploy automatically.
References
License
MIT © One Giant Leap. Use it, fork it, adapt it for your organization. Bloomerang is a trademark of its owner. This project is independent and not affiliated with or endorsed by Bloomerang.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Talk to your live-events CRM (campaigns, analytics, paid ads, segments) in Claude and ChatGPT.
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Related MCP Servers
- AlicenseAqualityDmaintenanceIntegrates Claude with Salesforce for natural language interactions with Salesforce data and metadata, enabling querying, modifying, and managing objects and records.2019 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Salesforce for querying, modifying, and managing objects and records, with automatic integration setup for external services like WhatsApp, Slack, email, and webhooks.MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to Cendyn CRM, enabling real-time retrieval of contacts, purchases, campaigns, and audiences for analysis and decision-making.-
- FlicenseNot gradedqualityBmaintenanceEnables querying of live organizational data (student records, outcomes, certifications, finances, donations, communications) via Claude using structured database queries and semantic search.-