Skip to main content

Client Setup for the MCP Server

The Arvancloud MCP Server uses Streamable HTTP, so any client that supports this standard can connect to it. The following two headers are required in all clients.

HeaderDescription
Arvancloud-Api-KeyUsed to authenticate MCP requests.
Its value is apikey <machine user UUID>.
X-Mcp-ToolsetsSpecifies which Toolsets are enabled.
For example logs, all, or a comma-separated list such as logs,cdn.

To create a machine user or access key, go to the Arvancloud panel and create the key you want with the help of the Machine User guide.

Note that the machine user you created for the Arvancloud MCP Server must have the necessary permissions for the products you want; otherwise, MCP can't run that service's tools.

Currently only the Logs Toolset is available. The full list of Toolsets, each one's key, and their current status are in the MCP Server introduction.

The address of the Arvancloud MCP Server:

https://mcp.arvancloud.ir

Cursor​

Cursor's settings file is at ~/.cursor/mcp.json at the global level and at .cursor/mcp.json at the project level.

{
"mcpServers": {
"arvancloud": {
"url": "https://mcp.arvancloud.ir",
"headers": {
"Arvancloud-Api-Key": "apikey <your-machine-user-uuid>",
"X-Mcp-Toolsets": "logs"
}
}
}
}

After saving, reload Cursor or select MCP in Settings to see the connection status. For a project that only needs Logs, put the .cursor/mcp.json file in the repo root so team members have the same setting; in this case, it's better not to commit the real UUID and to use env variables or a secret manager instead.

Claude Desktop and Claude CLI​

Claude Desktop's settings file is at .mcp.json at the project level and at ~/.claude.json at the user level.

{
"mcpServers": {
"arvancloud": {
"type": "http",
"url": "https://mcp.arvancloud.ir",
"headers": {
"Arvancloud-Api-Key": "apikey <your-machine-user-uuid>",
"X-Mcp-Toolsets": "logs"
}
}
}
}

For Claude CLI, instead of editing the file, you can use the following command:

claude mcp add --transport http arvancloud https://mcp.arvancloud.ir \
--header "Arvancloud-Api-Key: apikey <your-machine-user-uuid>" \
--header "X-Mcp-Toolsets: logs"

OpenCode​

OpenCode's settings file is at opencode.json or opencode.jsonc at the project level, and at ~/.config/opencode/opencode.json at the global level.

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"arvancloud": {
"type": "remote",
"url": "https://mcp.arvancloud.ir",
"enabled": true,
"oauth": false,
"headers": {
"Arvancloud-Api-Key": "apikey <your-machine-user-uuid>",
"X-Mcp-Toolsets": "logs"
}
}
}
}

Other Clients​

Any client that supports MCP over HTTP needs to set the server address, send the Arvancloud-Api-Key and X-Mcp-Toolsets headers in every MCP request, and limit the Toolset to what it needs to connect to the Arvancloud MCP Server. For example, using logs instead of all gives better security.

The following table summarizes the location of the settings file for each of the clients above.

ClientProject-level fileGlobal file
Cursor.cursor/mcp.json~/.cursor/mcp.json
Claude.mcp.json~/.claude.json
OpenCodeopencode.json~/.config/opencode/opencode.json