Without an SDK, plain JSON-RPC 2.0 over POST works. Important: the Accept header must contain both types, or the server refuses the request.
tools/list
curl -X POST https://kennisbank.gentrepreneur.be/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
tools/call
curl -X POST https://kennisbank.gentrepreneur.be/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_knowledge_base",
"arguments": { "query": "btw-nummer aanvragen", "language": "nl", "limit": 3 }
}
}'
The result comes back as a single data: line containing a content array; the first text block holds the tool's JSON.
Prefer it without MCP
If you don't have an MCP client, the same four tools are available as a plain JSON API. One path per tool, GET with a query string or POST with a JSON body:
rest
curl 'https://kennisbank.gentrepreneur.be/api/agent/search_knowledge_base?query=startlening&limit=3'
curl -X POST https://kennisbank.gentrepreneur.be/api/agent/ask_knowledge_base \
-H 'Content-Type: application/json' \
-d '{"question":"Hoe vraag ik een startlening aan?","language":"nl"}'
Server-to-server only. This path sends no CORS headers, so it won't work straight from browser JavaScript. Call it from your own backend, or use the MCP endpoint — that one is open to cross-origin clients.