Integrate with Chance AI
Developer portal
MCP server
The same opportunity catalogue as the REST API — jobs, scholarships, training programmes and tenders — exposed to AI agents as tool calls.
https://api.chance.africa/api/mcpPOST. Every other method answers 405.mcp-protocol-version: 2025-06-18Authorization header.Connect a client
Add the server to your MCP client configuration. Replace the placeholder with a key from the API keys page. Well-behaved clients send the protocol version header for you.
{
"mcpServers": {
"chance-ai": {
"type": "http",
"url": "https://api.chance.africa/api/mcp",
"headers": {
"Authorization": "Bearer ca_live_your_key_here"
}
}
}
}Protocol version
mcp-protocol-versionOptional. Omit it and the server answers on 2025-06-18. Send an unsupported value and the request is rejected with 400.
Supported: 2025-06-182025-03-262024-11-05
Authentication and quotas
Send your API key as a bearer token: Authorization: Bearer ca_live_…
Anonymous calls are accepted but limited per IP address. A keyed call draws down the same monthly allowance as the REST API and returns the same X-RateLimit-* headers. Track usage on the API keys page.
Tools
Three read-only tools. Call tools/listfor the full schemas, including each tool's output shape.
querystring · Optional
- Phrase matched against title, description and tags.
typestring · Optional
- One of job, study, training, tender or other.
locationstring · Optional
- Matched against the published location.
categorystring · Optional
- Sector or category label.
pageinteger · Optional, defaults to 1
- One-based page index, up to 200.
pageSizeinteger · Optional, defaults to 10
- Records per page, between 1 and 25.
idstring (uuid) · Required
- An id returned by search_opportunities or list_jobs.
pageinteger · Optional, defaults to 1
- One-based page index, up to 200.
limitinteger · Optional, defaults to 10
- Records per page, between 1 and 25.
Call it directly
No MCP client required. Export your key as CHANCE_API_KEY first.
curl -sS -X POST "https://api.chance.africa/api/mcp" \
-H "Content-Type: application/json" \
-H "mcp-protocol-version: 2025-06-18" \
-H "Authorization: Bearer $CHANCE_API_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -sS -X POST "https://api.chance.africa/api/mcp" \
-H "Content-Type: application/json" \
-H "mcp-protocol-version: 2025-06-18" \
-H "Authorization: Bearer $CHANCE_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_opportunities",
"arguments": { "query": "renewable energy", "type": "job", "pageSize": 5 }
}
}'