CRM MCP Server
Connects the MCP server to HubSpot CRM through a CrmProvider adapter, enabling AI agents to search and retrieve contacts, list deals by stage and amount, add signed notes, and update deal stages within configured policy limits and audit logging.
Connects the MCP server to Salesforce CRM through the same CrmProvider interface, providing tools to find contacts, inspect deals and recent notes, log call notes, and move deals through pipeline stages subject to team-defined guardrails.
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.
CRM MCP Server
An MCP server that lets Claude, ChatGPT or your own agent work with CRM data: find contacts, read deals, log call notes and move deals through the pipeline, within limits your team sets.
It's a reference project showing how I connect AI to a company's systems. Giving a model access is the easy part. The real work is deciding what it can see, what it can change, and keeping a record of everything it did.
You: Which qualified deals over $20k do we have, and what's the latest on Corvus?
Claude → list_deals {stage: "qualified", min_amount: 20000}
Claude → get_contact {contact_id: "C-102"}
Claude: Two qualified deals over $20k: Corvus dispatch assistant ($64,000) and Northpeak RAG pilot ($22,000).
Latest on Corvus: their dispatchers spend about 3 hours a day re-keying loads from email,
and budget is approved for Q1.Tools
Tool | Type | What it does |
| read | Find contacts by name, email or company |
| read | One contact with their deals and recent notes |
| read | Deals by stage and minimum amount, largest first |
| write | Add a note to a contact, signed with the AI's name |
| write | Move a deal to another stage, with a reason |
Related MCP server: MCP Suite CRM
Guardrails
Every default is the safe one, and a team widens access on purpose:
Read-only by default. Write tools aren't even listed to the model until
CRM_MODE=read-write.Allowlist.
CRM_ALLOWED_TOOLS=search_contacts,get_contactexposes only those tools.Deal limits. AI stage changes on deals above
CRM_MAX_DEAL_AMOUNT(default 25,000) are refused and left for a person.Closing deals needs a person. Moving a deal to
wonorlostis refused unlessCRM_ALLOW_CLOSING_DEALS=true.Personal data. Phone numbers are hidden unless
CRM_EXPOSE_PHONE=true.Audit log. Every call is recorded with its actor, arguments and outcome (
ok,refusedorerror), and written to a JSONL file whenAUDIT_LOGis set. Note text is not copied into the log.Tool hints. Read tools carry
readOnlyHint, so MCP clients can skip the confirmation prompt for them and still ask before writes.
Use it with Claude Desktop or Claude Code
git clone https://github.com/hassan-forge/crm-mcp-server
cd crm-mcp-server
npm install && npm run buildClaude Desktop: add this to claude_desktop_config.json:
{
"mcpServers": {
"crm": {
"command": "node",
"args": ["/absolute/path/to/crm-mcp-server/dist/index.js"],
"env": {
"CRM_MODE": "read-write",
"CRM_MAX_DEAL_AMOUNT": "25000",
"AUDIT_LOG": "/absolute/path/to/crm-audit.jsonl"
}
}
}
}Claude Code:
claude mcp add crm -e CRM_MODE=read-write -- node /absolute/path/to/crm-mcp-server/dist/index.jsAny MCP client that supports stdio servers works the same way.
Configuration
Variable | Default | Meaning |
|
|
|
| all | Comma-separated list of tools to expose |
|
| Largest deal the AI may move between stages |
|
| Allow moving deals to |
|
| Return phone numbers to the model |
|
| Name used on notes and in the audit log |
| none | Path of a JSONL audit file |
|
| Seed data for the in-memory CRM |
Connecting a real CRM
The tools talk to a CrmProvider interface (src/crm.ts). The in-memory version is there for the demo and the tests. A HubSpot, Salesforce or Pipedrive adapter implements the same eight methods, and the tools, policy and audit log don't change.
src/
index.ts stdio entry point
server.ts tool definitions and the policy and audit wrapper around every call
policy.ts what the AI may see and change, read from environment variables
crm.ts CrmProvider interface and the in-memory CRM
audit.ts audit log (memory + optional JSONL file)
test/
server.test.ts 19 tests through a real MCP client over an in-memory transportDevelopment
npm install
npm test # vitest
npm run typecheck
npm run dev # run from source with tsxCI runs the type check, tests and build on Node 20 and 22.
License
MIT
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
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Sales enablement for AI agents: governed content, deal rooms, playbooks and analytics, via OAuth.
1CRM, inbox, meetings, revenue intelligence, analytics and automations for AI agents.
Connect assistants to your company tools with per-person, per-action grants and a full audit log.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides AI agents with secure access to Salesforce data and operations, enabling natural language interaction with CRM for sales, marketing, and executive teams.65MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with a CRM covering companies, people, leads, deals, and more, with role checks, scoped agent keys, approval gates, and a shared audit trail.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to securely access and manage CRM pipeline, relationships, tasks, notes, files, and deal context through authenticated Streamable HTTP/OAuth, inheriting the signed-in user's permissions and business-unit isolation.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and manage CRM data by creating contacts and companies, retrieving activities and conversations, and performing semantic search over previously retrieved information with built-in vector storage and caching.-