mcp-crm
mcp-crm
Ein Lernprojekt: ein Model Context Protocol-Server, der einem MCP-Client über stdio ein CRM bereitstellt.
Die Anmeldung erfolgt über Microsoft Entra mit dem Device-Code-Flow. Das resultierende Identitätstoken wird gegen ein CRM-Zugriffstoken ausgetauscht, sodass CRM-Abfragen als angemeldeter Benutzer ausgeführt werden und nur das zurückgeben, was dieser Benutzer sehen darf.
Voraussetzungen
Node.js 20+
Eine Entra-App-Registrierung mit aktiviertem Device-Code-Flow für öffentliche Clients
Eine CRM-API, die ein Entra-Token am Endpunkt
POST /api/auth/entraakzeptiert undGET /api/accountsbereitstellt
Related MCP server: M365 Copilot Web Bridge
Einrichtung
npm installErstellen Sie eine .env im Projektverzeichnis:
ENTRA_CLIENT_ID=<your app registration's client id>
ENTRA_TENANT_ID=<your directory tenant id>
CRM_API_BASE_URL=https://your-crm.example.comAlle drei sind erforderlich – der Server wirft beim Start einen Fehler, wenn auch nur eine fehlt. Die Datei .env ist per .gitignore ausgeschlossen; committe sie niemals.
Ausführen
npx tsx src/index.ts # run directly
npx tsc # type-check and build to dist/Der Server spricht MCP über stdio, wird also normalerweise von einem Client gestartet statt von Hand. Um ihn mit Claude Code zu registrieren:
{
"mcpServers": {
"crm": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/mcp-crm/src/index.ts"]
}
}
}Logausgaben gehen an stderr, da stdout das MCP-Protokoll transportiert.
Tools
Tool | Beschreibung |
| Beginnt die Entra-Device-Code-Anmeldung und gibt den Code und die zu öffnende URL zurück. Kehrt sofort zurück; die Anmeldung wird im Hintergrund abgeschlossen. |
| Meldet, ob diese Anmeldung abgeschlossen ist, noch aussteht oder fehlgeschlagen ist. |
| Durchsucht echte CRM-Konten nach Namen. Erfordert eine abgeschlossene Anmeldung. Gibt bis zu 25 Treffer mit |
| Durchsucht eine kleine hartkodierte Liste von Beispielkonten. Keine Authentifizierung erforderlich – dient zum Testen der Anbindung ohne ein echtes CRM. |
Ablauf der Anmeldung
start_crm_login kann nicht blockieren, bis die Anmeldung bei Entra abgeschlossen ist, deshalb ist der Ablauf in zwei Schritte unterteilt:
Rufen Sie
start_crm_loginauf. Diese gibt den Device-Code und die zu öffnende URL zurück.Schließen Sie die Anmeldung im Browser ab.
Rufen Sie
crm_login_statusauf, um die Anmeldung zu bestätigen. Sobald sie einen angemeldeten Benutzer meldet, funktioniertsearch_crm_accounts.
Das Token wird ausschließlich im Arbeitsspeicher gehalten – ein Neustart des Servers bedeutet eine erneute Anmeldung.
Lizenz
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceBridges stdio-based LLM harnesses to OAuth-protected remote MCP servers via Streamable HTTP, handling PKCE browser login and token refresh automatically.9
- AlicenseNot gradedqualityCmaintenanceExposes a user-authenticated Microsoft 365 Copilot Chat browser session as a stdio MCP server, enabling AI-powered chat interactions via MCP tools like copilot_chat and copilot_status.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables managing Onde Inference accounts and model catalog operations through MCP tools such as login, app management, model registration, and assignment. Returns structured JSON over stdio for use with any MCP client.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceProvides MCP tools to interact with GoHighLevel CRM data, including contacts, conversations, call transcripts, broker lead overviews, pipelines/opportunities, and task creation. Supports both stdio and HTTP transports for local and remote use.
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Saipranoy/mcp-crm'
If you have feedback or need assistance with the MCP directory API, please join our Discord server