docs/images/agents/en/cursor.md
All MCP clients use the same Authorization Token, which is the API Key from the OpenViking console. Get it first and keep it secure.
In the left menu, choose User Management.
Find the target user in the user list. For personal editions, the default user is usually default / admin. Click the copy icon in the API Key column.
Save the copied ZGV...hiMg string. It will be used as the Authorization value for agent integration.
Security note: The API Key is equivalent to an account secret. Do not commit it to Git or publish it anywhere. Prefer environment variables or encrypted configuration.
This is the standard OpenViking flow for connecting Cursor.
In the Cursor main window, click Settings in the upper-right corner to open the settings panel.
In the left menu, select Tools & MCPs to open the MCP Servers page.
Click Add Custom MCP.
In the opened mcp.json file, paste the following JSON and replace Authorization with the API Key copied in section 1:
{
"mcpServers": {
"ov-mcp-server": {
"url": "https://api.vikingdb.cn-beijing.volces.com/openviking/mcp",
"headers": {
"Authorization": "Bearer ZGVmYXV********YzdlZjhiMg"
}
}
}
}
Important: The Authorization value must include the Bearer prefix and a space. The full format is Bearer <API Key>.
After saving and closing mcp.json, Cursor automatically connects to the MCP server and loads the tools. When the connection succeeds, ov-mcp-server appears in the Installed MCP Servers list with the enabled tool count, such as "10 tools enabled". The switch next to ov-mcp-server should be green, which means the service is loaded and ready.
After connecting, run two simple queries in Cursor to verify the MCP server:
1. ov ls - List OpenViking root directories and confirm the connection returns the expected structure.
2. ov health - Call the health tool to confirm server status and current identity.
Acceptance criteria: ov ls returns directories such as agent / resources / session / user; ov health returns service initialized and the current username.
| Field | Required | Description |
|---|---|---|
mcpServers | Yes | Root node for MCP server configuration |
ov-mcp-server | Yes | Service alias. It can be customized, but keeping this name helps contextual recognition |
url | Yes | OpenViking MCP endpoint. For CN, use https://api.vikingdb.cn-beijing.volces.com/openviking/mcp |
headers.Authorization | Yes | Format: Bearer <API Key>. Source: section 1 |
| Problem | Suggested fix |
|---|---|
| Connection failed / 401 Unauthorized | Check that Authorization includes the Bearer prefix and that the API Key is valid |
| Connection failed / network timeout | Confirm the network can reach api.vikingdb.cn-beijing.volces.com; add an allowlist entry for corporate networks if needed |
| Agent cannot see tools | Confirm the MCP server is enabled. Some clients need a process restart before loading new config |