ApiMCP Servers

Test an MCP server

POST
/mcp-servers/{id}/test

Connect to the MCP server from the platform and list its tools, with the stored headers. Use it after adding a server, and to see the exact tool names for allowed_tools.

To test a token you only pass per call, send it in headers: those are merged over the stored headers for this test only and are not stored.

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication. Get your key from the dashboard.

In: header

Path Parameters

id*string

MCP server UUID

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/mcp-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/test" \  -H "Content-Type: application/json" \  -d '{}'
{
  "ok": true,
  "duration_ms": 412,
  "tools": [
    {
      "name": "search_mail",
      "description": "Search the mailbox for messages that match a query",
      "input_schema": {}
    }
  ],
  "error": "The server answered HTTP 401: check the headers of this MCP server."
}
{
  "error": "Invalid API key",
  "message": "string"
}
{
  "error": "Invalid API key",
  "message": "string"
}
{
  "error": "Invalid API key",
  "message": "string"
}