# MCP Server Check API

> Connect to a remote MCP server, run initialize and tools / prompts / resources list, validate against the 2025-11-25 spec, check OAuth and risky tool text.

- Endpoint: `GET | POST https://apibox.io.vn/v1/mcp-check`
- Category: Developer utilities
- HTML docs: https://apibox.io.vn/docs/mcp-check/ (Vietnamese: https://apibox.io.vn/vi/docs/mcp-check/)
- Online tool: https://apibox.io.vn/tools/mcp-check/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

Give the `url` of a remote Model Context Protocol server. The checker speaks Streamable HTTP (JSON or SSE answers, `Mcp-Session-Id`, `MCP-Protocol-Version`) and falls back to the legacy HTTP+SSE transport. It runs `initialize`, `notifications/initialized`, `tools/list` (all pages), `prompts/list` and `resources/list` when declared, plus one unknown-method probe, and closes the session. It never calls a tool unless you name one with `call_tool` (+ `arguments`).

Checks: JSON-RPC shape, negotiated protocol version, `serverInfo` and capabilities; per tool: name length and characters (spec 2025-11-25), duplicates, missing descriptions, `inputSchema` / `outputSchema` structure (types, properties, required), annotations; error code for unknown methods. Security heuristics flag descriptions with prompt-injection patterns (ignore instructions, hide from the user, <IMPORTANT> tags, secret files such as ~/.ssh, hidden steps, sending data elsewhere), invisible Unicode, encoded blobs and shadowing of common tool names.

On HTTP 401 it checks the OAuth discovery chain: `WWW-Authenticate` with `resource_metadata`, protected resource metadata (RFC 9728), authorization server metadata (RFC 8414 / OpenID), PKCE S256 and client registration. Pass `token` to check a protected server (used for this request only, never stored). `format=badge` returns an SVG badge for your README. Verdict: `pass`, `warn` or `fail`.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `url` | query | string | yes |  | MCP endpoint, e.g. `https://mcp.example.com/mcp` (or the `/sse` URL of a legacy server). |
| `token` | body|query | string | no |  | Bearer token for protected servers (prefer POST so it is not in logs of proxies). |
| `transport` | query | string | no | `auto` | `auto`, `streamable` or `sse` (legacy). |
| `call_tool` | body|query | string | no |  | Name of one tool to call with `arguments` (off by default). |
| `arguments` | body|query | object | no |  | JSON object of arguments for `call_tool`. |
| `protocol_version` | query | string | no | `2025-11-25` | Protocol version offered in initialize. |
| `timeout` | query | number | no | `15` | Total time budget in seconds (3–25). |
| `format` | query | string | no |  | `badge`: SVG badge instead of JSON. |

## Example request

```bash
curl "https://apibox.io.vn/v1/mcp-check?url=https://mcp.deepwiki.com/mcp" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "url": "https://mcp.deepwiki.com/mcp",
  "checked_at": "2026-11-16T04:02:26.925Z",
  "transport": "streamable_http",
  "http_status": 200,
  "auth_required": false,
  "server": {
    "name": "DeepWiki",
    "title": null,
    "version": "4.0.2",
    "protocol_version": "2025-11-25",
    "capabilities": [
      "logging",
      "prompts",
      "resources",
      "tools"
    ],
    "instructions": "DeepWiki MCP provides AI-powered documentation for GitHub repositories. …",
    "session": false
  },
  "tools": [
    {
      "name": "ask_wiki_question",
      "title": "Ask Wiki Question",
      "description": "Ask any question about a GitHub repository's codebase and get an AI-powered answer\ngrounded in its DeepWiki.",
      "params": [
        "repoName",
        "question"
      ],
      "required": [
        "repoName",
        "question"
      ],
      "has_output_schema": true,
      "annotations": null,
      "issues": 0
    },
    {
      "name": "read_wiki_contents",
      "title": "Read Wiki Contents",
      "description": "View documentation about a GitHub repository.",
      "params": [
        "repoName"
      ],
      "required": [
        "repoName"
      ],
      "has_output_schema": true,
      "annotations": null,
      "issues": 0
    },
    {
      "name": "read_wiki_structure",
      "title": "Read Wiki Structure",
      "description": "Get a list of documentation topics for a GitHub repository.",
      "params": [
        "repoName"
      ],
      "required": [
        "repoName"
      ],
      "has_output_schema": true,
      "annotations": null,
      "issues": 0
    }
  ],
  "tools_count": 3,
  "prompts_count": 0,
  "prompts": [],
  "resources_count": 0,
  "resources": [],
  "verdict": "pass",
  "summary": {
    "errors": 0,
    "warnings": 0,
    "infos": 0,
    "ms": 3651
  },
  "issues": [],
  "note": "Only initialize, notifications/initialized, tools/list, prompts/list, resources/list and one unknown-method probe are sent; tools/call only when \"call_tool\" is given. The token is used for this check only and is not stored."
}
```

## Use cases

- Regression-test your MCP server in CI after every deploy
- Review a third-party MCP server for poisoned tool descriptions before adding it to Claude, Cursor or VS Code
- Debug OAuth discovery when a client cannot connect
- Show a "MCP: pass" badge in the README of your server

## FAQ

### Does it run my tools?

No. Only listing calls are sent. A tool is called only when you pass call_tool with its arguments, so you decide if it is safe.

### Which transports are supported?

Streamable HTTP (the current transport, JSON or SSE answers) and the deprecated HTTP+SSE transport as a fallback. Local stdio servers cannot be reached from the internet.

### Is the token stored?

No. It is sent to the server for this check only and is not logged or kept. Use a short-lived, read-only token where possible.
