The Kosmobids MCP server exposes the Public API as Model Context Protocol tools over Streamable HTTP. Every tool is derived from the same operation definitions as the HTTP API, so inputs, results, company scoping, rate limits, and errors are identical. Use MCP when your client speaks MCP; use HTTP for uploads, binary downloads, and server-to-server integrations.
Endpoint
https://api.kosmobids.com/mcp
The endpoint is stateless and JSON-only. POST carries JSON-RPC 2.0 requests. GET returns 405 Method Not Allowed because the server does not open a server-initiated SSE stream.
Authentication
Send the same company-scoped API key as the HTTP API, as a Bearer token:
POST /mcp HTTP/1.1
Host: api.kosmobids.com
Authorization: Bearer kosmobids_live_...
Content-Type: application/json
x-api-key is also accepted. Company identity always comes from the key; tools never take a companyId or any other tenant identifier. See Authentication and company scoping.
Discovery is the one exception: initialize, tools/list, ping, and the notifications/* messages answer without credentials so MCP directory analyzers and clients can inspect the server. Every tools/call still requires a company-scoped key.
Client configuration
{
"mcpServers": {
"kosmobids": {
"type": "http",
"url": "https://api.kosmobids.com/mcp",
"headers": {
"Authorization": "Bearer ${KOSMOBIDS_API_KEY}"
}
}
}
}
Tools
Tool names are the snake_case form of the HTTP operation IDs. Each tool's input schema is generated from the route's parameters, query, and body schemas.
Pipeline
| Tool | HTTP equivalent |
|---|---|
list_pipeline_tenders |
GET /api/v1/pipeline |
list_pipeline_stages |
GET /api/v1/pipeline/stages |
update_pipeline_stage |
PUT /api/v1/pipeline/:tenderId/stage |
update_pipeline_tags |
PUT /api/v1/pipeline/:tenderId/tags |
archive_pipeline_tender |
POST /api/v1/pipeline/:tenderId/archive |
unarchive_pipeline_tender |
DELETE /api/v1/pipeline/:tenderId/archive |
create_private_tender |
POST /api/v1/pipeline/private-tenders |
list_tender_files |
GET /api/v1/tenders/:tenderId/files |
get_api_status |
GET /api/v1/status |
Search
| Tool | HTTP equivalent |
|---|---|
run_search |
POST /api/v1/search |
list_saved_searches |
GET /api/v1/saved-searches |
get_saved_search |
GET /api/v1/saved-searches/:savedSearchId |
create_saved_search |
POST /api/v1/saved-searches |
update_saved_search |
PATCH /api/v1/saved-searches/:savedSearchId |
delete_saved_search |
DELETE /api/v1/saved-searches/:savedSearchId |
start_saved_search_run |
POST /api/v1/saved-searches/:savedSearchId/runs |
list_saved_search_runs |
GET /api/v1/saved-searches/:savedSearchId/runs |
list_saved_search_run_matches |
GET /api/v1/saved-searches/:savedSearchId/runs/:runId/matches |
Tenders and notices
| Tool | HTTP equivalent |
|---|---|
get_tender_details |
GET /api/v1/tenders/:tenderId |
list_tender_lots_by_source |
GET /api/v1/tenders/by-source/:sourceTenderId |
find_look_alike_tenders |
POST /api/v1/tenders/:tenderId/look-alike |
get_notice_details |
GET /api/v1/notices/:noticeId |
Documents
| Tool | HTTP equivalent |
|---|---|
get_document |
GET /api/v1/documents/:fileId |
get_document_pages |
GET /api/v1/documents/:fileId/pages |
get_document_headers |
GET /api/v1/documents/:fileId/headers |
trigger_document_download |
POST /api/v1/tenders/:tenderId/documents/download |
start_document_analysis |
POST /api/v1/tenders/:tenderId/analyze |
get_document_analysis |
GET /api/v1/analyses/:workflowId |
Collaboration
| Tool | HTTP equivalent |
|---|---|
post_tender_api_comment |
POST /api/v1/tenders/:tenderId/api-comments |
Transport differences
- Same results. A successful tool call returns the HTTP response
datapayload as JSON text and as MCP structured content. Error responses become tool errors (isError: true) with the same message the HTTP API would return. - Asynchronous work.
start_saved_search_runreturns a run ID andstart_document_analysisreturns a workflow ID, exactly like the HTTP202responses. Polllist_saved_search_run_matchesandget_document_analysisuntil the final status. See Asynchronous work and polling. - Rate limits. The same per-company limits apply. MCP has no
x-rate-limit-*response headers, so a rate-limited call comes back as a tool error; back off before retrying. - HTTP-only operations. Multipart uploads and binary downloads are not MCP tools. Use
POST /api/v1/tenders/:tenderId/filesfor uploads,GET /api/v1/tenders/:tenderId/files/zipfor tender archives, andGET /api/v1/files/:fileId/downloadfor single files. - No envelope. The
{ data, error }envelope is an HTTP detail; MCP returns the payload directly.
Which should I use?
| Use case | Surface |
|---|---|
| An AI client or agent that speaks MCP | MCP |
| Server-to-server, CI, or any non-MCP language | HTTP |
| Uploading tender documents | HTTP |
| Downloading files or zips | HTTP |
| Reading and writing pipeline, search, documents, and comments | Either |
Both surfaces are first-class and cover the same operations, except the HTTP-only operations listed above. See Errors and limits and the API changelog.