claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

MCP server shows Connected but tools not discovered (@supabase/mcp-server-supabase)

Open caffeinebounce opened this issue 10 months ago • 1 comments

Description

The @supabase/mcp-server-supabase MCP server shows as "Connected" in claude mcp list, but its tools are not discoverable via MCPSearch and cannot be invoked directly.

Environment

  • Claude Code version: 2.1.12
  • OS: macOS Darwin 25.2.0
  • MCP Server: @supabase/mcp-server-supabase (latest via npx)

Configuration

{
  "supabase": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@supabase/mcp-server-supabase"],
    "env": {
      "SUPABASE_ACCESS_TOKEN": "sbp_xxxxx..."
    }
  }
}

Steps to Reproduce

  1. Add supabase MCP server with valid access token:

    claude mcp add supabase -s local -e SUPABASE_ACCESS_TOKEN="$TOKEN" -- npx -y @supabase/mcp-server-supabase
    
  2. Restart Claude Code

  3. Verify server is connected:

    claude mcp list
    # Shows: supabase: npx -y @supabase/mcp-server-supabase - ✓ Connected
    
  4. Try to use any supabase tool - fails with "No such tool available"

Expected Behavior

Tools like mcp__supabase__list_projects, mcp__supabase__execute_sql should be available.

Actual Behavior

  • claude mcp list shows server as "✓ Connected"
  • claude mcp get supabase shows correct config including env vars
  • MCPSearch returns "No matching MCP tools found"
  • Direct tool invocation fails: "Error: No such tool available"

Verification that MCP Server Works

Testing the server directly confirms it exposes 30 tools correctly:

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | \
  SUPABASE_ACCESS_TOKEN="$TOKEN" npx -y @supabase/mcp-server-supabase

Returns full tools list including list_projects, execute_sql, list_tables, etc.

Workaround

Direct PostgreSQL connection to Supabase works - only MCP tool discovery is broken.

Additional Context

  • The access token is valid (verified via direct API call to https://api.supabase.com/v1/projects)
  • Other MCP servers (memory, playwright, github, etc.) work fine
  • Multiple restart cycles of Claude Code didn't resolve the issue
  • Removing and re-adding the server didn't help

🤖 Generated with Claude Code

caffeinebounce avatar Jan 18 '26 23:01 caffeinebounce

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12164
  2. https://github.com/anthropics/claude-code/issues/14978
  3. https://github.com/anthropics/claude-code/issues/2682

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 18 '26 23:01 github-actions[bot]

This issue has been automatically closed as a duplicate of #12164.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 22 '26 09:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 30 '26 14:01 github-actions[bot]