Zoho Analytics MCP Server
The Zoho Analytics MCP Server (Beta) implements the Model Context Protocol (MCP), a standardized interface that enables AI models to interact seamlessly with applications. This middleware solution bridges the connection between AI agents and Zoho Analytics, providing powerful data analysis capabilities through a unified interface.
Note: The Zoho Analytics MCP project is currently in its early development (Beta) phase. As we continue to improve and refine its features, the available tools and functionalities may change.
Getting Started
- Docker Image Setup
- Configuring Environment Variables
- Remote MCP Server Setup (Hosted Option)
- Integrating with MCP Hosts
1. Docker Image Setup
System Requirements
To build the Zoho Analytics MCP server from source, you need to have Docker installed on your system. Before setup, please make sure to have docker and a container runtime installed in your device.
Pull Docker Image
If you prefer to use the pre-built Docker image, you can pull it directly from Docker Hub:
docker pull zohoanalytics/mcp-server:latest
2. Configuring Environment Variables
Obtaining OAuth Credentials
To configure the Zoho Analytics MCP Server, you need to provide OAuth credentials (Client ID, Client Secret, and Refresh Token) as environment variables. Follow these steps to generate them:
- Go to the Zoho Developer Console
- Create a new Self-Client application.
- Enable the Zoho Analytics API scope.
- Generate your Refresh Token.
For detailed instructions, refer to the official API Authentication Documentation.
Required Environment Variables
Configure these essential variables before integrating with the MCP Hosts:
| Variable | Description |
|---|
| ANALYTICS_CLIENT_ID | Your Zoho Analytics OAuth client ID |
| ANALYTICS_CLIENT_SECRET | Your Zoho Analytics OAuth client secret |
| ANALYTICS_REFRESH_TOKEN | Your Zoho Analytics OAuth refresh token |
| ANALYTICS_ORG_ID | Your Zoho Analytics organization ID |
| ANALYTICS_MCP_DATA_DIR | Directory for storing temporary data files |
| ACCOUNTS_SERVER_URL | Your Zoho Analytics Accounts Domain URL (https://accounts.zoho.com) |
| ANALYTICS_SERVER_URL | Your Zoho Analytics Accounts Domain URL (https://analyticsapi.zoho.com) |
Other Environment variables
The following is a list of other optional environment variables:
| QUERY_DATA_RESULT_ROW_LIMITS (Optional) | Number of rows outputted by the query_data tool.
Default row limit - 20 |
| QUERY_DATA_POLLING_INTERVAL (Optional) | Sleep Time between consecutive polls to check job status (JOB COMPLETED, JOB IN QUEUE; For more, please refer to analytics v2 api documentation). Default sleep time - 4 seconds |
| QUERY_DATA_QUEUE_TIMEOUT (Optional) | This is the amount of time allowed between job submit time in the queue and job processing (query processing) time. Default time in queue - 120 seconds |
| QUERY_DATA_QUERY_EXECUTION_TIMEOUT (Optional) | The amount of time allowed for query execution. Default execution time - 30 seconds |
| WORKSPACE_RESULT_LIMIT (Optional) | The number of workspaces that will be returned in the response by the get_workspaces tool. Default size of the workspaces list - 20 |
| VIEW_RESULT_LIMIT (Optional) | The number of view that will be returned in the response by get_views tool. Default size of the views list - 30 |
3. Remote MCP Server Setup (Self-Hosted)
Remote MCP lets you host Zoho Analytics MCP once and share it with your organization over HTTP(S), removing local Docker installs, manual OAuth steps, and per-user updates. Authentication, token lifecycle, and upgrades are handled centrally so end users just point their MCP client to a single URL.
Client configuration
Any MCP host that supports the HTTP transport can point to your hosted instance: