Before setting up Yoku's MCP server, you'll need:
Yoku's MCP server is available at the following endpoint:
https://mcp.yoku.app
Server Information:
Mcp-Session-Id headerNavigate to your Yoku dashboard and sign in with your account.
Go to Settings > API Keys.
Security Important!
Your API key grants access to your Yoku account. Keep it secure:
All requests to the MCP server must include your API key as a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Your API key will look like this:
yoku_live_1234567890abcdef1234567890abcdef
Your MCP server access is governed by your subscription plan:
| Plan | Monthly Requests | Rate Limit |
|---|---|---|
| Free | 100 requests | 1 req/sec |
| Starter | 5,000 requests | 5 req/sec |
| Professional | 50,000 requests | 10 req/sec |
| Business | 500,000 requests | 50 req/sec |
MCP Tool Calls Count Toward Your Quota
Each tool invocation (e.g., brand.get or brand.search) counts as one API request against your monthly limit.
When you reach your monthly quota:
-32603Retry-After header with seconds until the next monthExample error response:
{
"jsonrpc": "2.0",
"error": {
"code": -32603,
"message": "API request limit reached for your current plan."
},
"id": null
}
The MCP server uses session-based connections to maintain state across multiple requests:
initialize request without a session IDMcp-Session-Id headerThis is handled automatically by MCP clients - you don't need to manage sessions manually.
You can test the MCP server directly using cURL:
curl -X POST https://mcp.yoku.app \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {
"name": "test-client",
"version": "1.0.0"
}
},
"id": 1
}'
Expected response:
{
"jsonrpc": "2.0",
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"logging": {},
"tools": {
"listChanged": false
}
},
"serverInfo": {
"name": "yoku-mcp",
"version": "1.0.0"
}
},
"id": 1
}
After initialization, you can list available tools:
curl -X POST https://mcp.yoku.app \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Mcp-Session-Id: YOUR_SESSION_ID" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 2
}'
Problem: Receiving 401 Unauthorized errors
Solutions:
Authorization header is properly formattedBearer prefix before the keyProblem: Receiving session not found errors
Solutions:
initialize request to create a fresh sessionMcp-Session-Id header correctlyProblem: Hit your monthly quota
Solutions:
Retry-After header)Problem: Requests are timing out
Solutions:
https://mcp.yoku.appFor security, store your API key in environment variables:
For Unix/Linux/macOS:
export YOKU_API_KEY="yoku_live_your_key_here"
For Windows (PowerShell):
$env:YOKU_API_KEY="yoku_live_your_key_here"
In your application:
const apiKey = process.env.YOKU_API_KEY;
Now that you understand authentication and setup, configure your specific MCP client:
If you encounter any issues:
Pro Tip: Monitor Your Usage
Keep track of your API usage in your dashboard. You can see request counts, remaining quota, and usage patterns to optimize your integration.