Zoho CRM MCP Server
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., "@Zoho CRM MCP Servercreate a new lead named John Doe from Acme Corp"
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.
Zoho CRM MCP Server (FastAPI + FastMCP)
A production-grade Model Context Protocol (MCP) server built with FastAPI + FastMCP that provides Claude Desktop and AI clients with complete, authenticated access to the Zoho CRM REST API v8.
๐ Key Features
FastAPI Web Framework: High-performance, production-ready web application powered by Uvicorn and FastAPI.
Dual Transport Support: Runs seamlessly both as a Web/HTTP/SSE MCP Server (for remote deployment & cloud hosting) and as a STDIO MCP Server (for local Claude Desktop).
Full OAuth 2.0 Lifecycle: Automatic code exchange, browser redirect handler (
/auth/callback), token storage, and automatic token refresh.Scoped Session Mode: ID-based safety filter (
activate_scope) that restricts operations exclusively to specific record IDs to prevent accidental modifications.Interactive OpenAPI Documentation: Built-in Swagger UI accessible at
/docs.Resilient Network Client: Built with
httpxfeaturing automatic 401 token refresh retry, HTTP 429 rate limit backoff, and exponential retry for 5xx errors.Automated Test Suite: Complete test suite using
pytestand FastAPITestClient.
๐ Repository Structure
zoho-crm-mcp/
โโโ server.py # FastAPI application + FastMCP tool definitions & endpoints
โโโ auth_manager.py # OAuth 2.0 flow & token refresh manager
โโโ zoho_client.py # Async HTTP client wrapper for Zoho CRM API v8
โโโ models.py # Pydantic state & validation models
โโโ token_store.py # File-based JSON token persistence (~/.zoho_crm_tokens.json)
โโโ test_server.py # Automated pytest test suite
โโโ requirements.txt # Project dependencies
โโโ .env.example # Environment configuration template
โโโ pyproject.toml # Package metadata
โโโ README.md # Server documentationโ๏ธ Setup & Installation
1. Prerequisites
Python 3.10+
A Zoho CRM Developer Account / API Console App (Zoho API Console)
Client Type: Server-based Applications
Redirect URI:
http://localhost:8000/auth/callback(or your production deployment callback URL)
2. Environment Setup
Copy .env.example to .env:
cp .env.example .envConfigure .env with your Zoho API application credentials:
ZOHO_CLIENT_ID=1000.xxxxxxx
ZOHO_CLIENT_SECRET=xxxxxxx
ZOHO_REDIRECT_URI=http://localhost:8000/auth/callback
ZOHO_DATA_CENTER=com
HOST=0.0.0.0
PORT=80003. Install Dependencies
Using pip:
pip install -r requirements.txt๐ Running & Deploying the Server
Option A: Local Development / FastAPI Web Server
To start the FastAPI web server with Uvicorn auto-reload:
python server.pyOr directly with Uvicorn:
uvicorn server:app --host 0.0.0.0 --port 8000 --reloadOnce running, access:
Web Dashboard: http://localhost:8000/
Interactive Swagger Docs: http://localhost:8000/docs
Health Check: http://localhost:8000/health
MCP HTTP/SSE Endpoint:
http://localhost:8000/mcp/mcp
Option B: Cloud Production Deployment (Render, Railway, Docker, AWS, Heroku)
Deploy using standard ASGI entrypoint server:app:
Start Command:
uvicorn server:app --host 0.0.0.0 --port $PORTHealth Check Path:
/healthEnvironment Variables: Set
ZOHO_CLIENT_ID,ZOHO_CLIENT_SECRET,ZOHO_REDIRECT_URI,ZOHO_DATA_CENTERin your hosting dashboard.
๐งช How to Test the Server
1. Run Automated Test Suite (pytest)
Execute all unit and integration tests using pytest:
pytest -vThis runs tests verifying:
Health check endpoint (
/health)Root landing page dashboard (
/)OAuth URL generation (
/auth/url)OAuth callback handler (
/auth/callback)Scoped mode state lifecycle (
/scope,/scope/activate,/scope/deactivate)Registration of all 30+ FastMCP tools.
2. Test via Interactive Swagger UI
Open
http://localhost:8000/docsin your browser.Test
/healthto verify server status.Test
/auth/urlto receive your OAuth authorization URL.Test
/scopeendpoints to manage scoped record access.
3. Test OAuth Login Flow in Browser
Start server:
python server.pyOpen
http://localhost:8000/auth/urlin browser or ask Claude to runget_auth_url().Open the returned URL, sign in to Zoho CRM, and click Accept.
Zoho will redirect to
http://localhost:8000/auth/callback?code=....The FastAPI server will automatically exchange the code, save tokens to
~/.zoho_crm_tokens.json, and render a success confirmation page.
๐ฅ๏ธ Claude Desktop Integration
Mode 1: HTTP / Remote MCP Connection
In claude_desktop_config.json:
{
"mcpServers": {
"zoho-crm": {
"url": "http://localhost:8000/mcp/mcp"
}
}
}Mode 2: Local STDIO Connection
In claude_desktop_config.json:
{
"mcpServers": {
"zoho-crm": {
"command": "python",
"args": ["C:/Users/Lenovo/Desktop/zoho MCP/server.py", "--stdio"],
"env": {
"ZOHO_CLIENT_ID": "1000.YOUR_CLIENT_ID",
"ZOHO_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"ZOHO_REDIRECT_URI": "http://localhost:8000/auth/callback",
"ZOHO_DATA_CENTER": "com"
}
}
}
}๐ฏ Scoped Session Mode (Safety Filter)
Restrict operations exclusively to specific record IDs to prevent unintended modifications:
Activate:
activate_scope(module="Deals", record_ids=["415340000000123001", "415340000000123002"])REST Activation:
POST http://localhost:8000/scope/activatewith JSON{"module": "Leads", "record_ids": ["123", "456"]}Deactivate:
deactivate_scope()orPOST http://localhost:8000/scope/deactivate
๐ ๏ธ Complete MCP Tool Reference
Category | Tools Included |
OAuth & Auth |
|
Scoped Mode |
|
Record CRUD |
|
COQL Engine |
|
Metadata & Discovery |
|
Settings API |
|
Workflows |
|
Bulk Operations |
|
Attachments & Notes |
|
Record Actions & Tags |
|
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.
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/NitinSharma077-echo/zoho-crm-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server