MCP Shipyard
← Rules catalog

MCP server shows 0 tools: tools/list returns empty (causes and fix)

If tools/list returns no tools, clients show an empty connector. Declare the tools capability, register tools, and check auth is not hiding the list.

blockercount.zeroGeneral

If tools/list returns an empty array, register at least one tool and declare the tools capability, and check that your authentication layer is not hiding the list from the caller. The rule is a blocker and is based on the MCP tools specification.

What you see

  • A scan reports count.zero: "tools/list returned 0 tools". It only fires when the server was reachable.
  • The connector adds successfully in a client but shows no tools. The exact UI text differs per client and is not verified here.

Why it happens

Common causes:

  1. No tool registered, or registration happens after the first request (async startup).
  2. The tools capability is not declared, so clients never call tools/list.
  3. Tools are registered per session or per user, and the unauthenticated or probe session gets none.
  4. A reverse proxy or a framework returns an empty result for a method it does not route.
  5. A feature flag or environment variable (for example a missing API key) disables registration in production.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq '.result.tools | length'

Run it twice: once with a valid token and once without. If the authenticated call returns tools and the unauthenticated one returns a 401, that is expected for OAuth servers. If it returns 200 with [], you have this problem.

Depending on which protocol revision you serve, an initialize call (older revisions) or a discover call (2026-07-28) may be needed first; see the lifecycle and discover pages in the sources.

Fix

const server = new McpServer({ name: "acme", version: "1.0.0" });

// register BEFORE connecting the transport
server.registerTool("ping", {
  description: "Return pong. Use to test the connection.",
  annotations: { title: "Ping", readOnlyHint: true, destructiveHint: false, openWorldHint: false },
}, async () => ({ content: [{ type: "text", text: "pong" }] }));

await server.connect(transport);

If tools vary by user, return the full list to every authenticated caller and enforce permissions when the tool is called, or return a useful subset to anonymous callers.

Verify

Re-run the curl command: length is 1 or more. Then check each tool with schema.missing and desc.missing in mind.

Which clients care

Tagged general: every client needs at least one tool for the server to do anything.

Source

MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server