MCP Server Quick Start
To use the Arvancloud MCP Server, you first need to create a machine user and get its access key.
The Machine User guide helps you with this.
Note that the machine user must have the necessary permissions for the services you want; otherwise, MCP can't run that service's tools. After creating the machine user, copy the access key's UUID to use in the MCP settings as apikey <UUID>.
Choosing a Toolset
The Toolset specifies which tools are visible in your client, and each Toolset's name is the same as its service. Currently only the Logs Toolset is available, so to get started, simply use the following value in the X-Mcp-Toolsets header.
X-Mcp-Toolsets: logs
When more services are added to the MCP Server, you can separate multiple Toolsets with commas, for example logs,cdn.
The full list of Toolsets and the status of each is in the MCP Server introduction.
Adding the MCP Server to Your Client
Enter the server address and the required headers in your AI client's settings. For example, the minimal configuration in Cursor is:
{
"mcpServers": {
"arvancloud": {
"url": "https://mcp.arvancloud.ir",
"headers": {
"Arvancloud-Api-Key": "apikey YOUR-MACHINE-USER-UUID",
"X-Mcp-Toolsets": "logs"
}
}
}
}
The configuration details of each client, including Claude and OpenCode, are in Client Setup.
Checking the Connection
After saving the settings and restarting the client, check the MCP status in Cursor, Claude, or OpenCode. The arvancloud server should be Connected. Then, for example, write in the chat:
- Show me the list of my Logs Spaces.
The model should call the logs_space_list tool and summarize the result. If you get a 401 or 400 error, check your authentication status and selected Toolset in Client Setup.
Example Usage
To create a new Space, you can write:
- Create a Space named prod-logs in region ir-thr with a retention of 30 days.
Or, to route a domain's logs to this Space, you can write:
- Route the logs of the domain api.example.com to the Space prod-logs.
The model can use the logs_route_domain_logs prompt or the *_logs_space and *_logs_sink tools for this.
You can see more example requests in the Example Requests guide.