Skip to content
MCP server

Apiverify

MCP server that checks whether a Python API exists in an exact PyPI version

Runs locally

Apiverify is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.1.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add apiverify -- uvx apiverify

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "apiverify": {
      "command": "uvx",
      "args": [
        "apiverify"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "apiverify": {
      "command": "uvx",
      "args": [
        "apiverify"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "apiverify": {
      "command": "uvx",
      "args": [
        "apiverify"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "apiverify": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "apiverify"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add apiverify -- uvx apiverify

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.apiverify]
command = "uvx"
args = ["apiverify"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "apiverify": {
      "command": "uvx",
      "args": [
        "apiverify"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user apiverify uvx -- apiverify

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "apiverify": {
          "command": "uvx",
          "args": [
            "apiverify"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Apiverify

Apiverify is a small stdio server that lets an AI assistant confirm whether a Python symbol is present in a specific published release of a package. Instead of relying on documentation or what a model remembers, it downloads that release from PyPI, verifies the published sha256, unpacks it safely and reads the source with Python's ast module, so package code is never imported or executed.

A lookup returns one of three answers: verified, with file, line, signature and deprecation signals; not_found, when every lookup path was followed and the name is absent from the source; or cannot_verify, when static analysis cannot settle the question, such as module-level getattr or re-exports from outside the package. Results are limited to plain module-level code, so dynamically created names are reported as uncertain rather than guessed.

The tool suits developers and agent builders who want fewer hallucinated calls to library APIs when code must match a pinned version. The author states the coverage is limited to Python packages on PyPI and that accuracy on real libraries is partial, with many abstentions on lazily loaded packages.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

verify_python_api
Checks whether a Python symbol exists in a given package version, with optional package and kwargs parameters.

What it does

Exact version lookup
Checks a symbol against the source of one named PyPI release rather than the latest version.
Three-way answers
Returns verified, not_found or cannot_verify so an agent can tell absence from uncertainty.
Static source reading
Parses the package with ast and never imports or runs its code.
Integrity checking
Compares the downloaded artifact against the sha256 that PyPI publishes for it.
Signature and location details
Reports the file, line, signature and deprecation signals for verified names.
No dependencies
Installs and runs through uvx without extra packages.

Good for

  • Confirming a function exists in the version pinned by a project before an agent writes code against it
  • Catching calls to renamed or removed library functions during version upgrades
  • Reducing invented method names when an assistant writes code for less-documented Python libraries
  • Checking whether a class attribute set in __init__ is plausibly present in a given release

Pricing

Open source

Apiverify FAQ

Does Apiverify run the package code?

No. It downloads the release, unpacks it safely and reads it with ast, and it never imports or runs package code.

Which languages are supported?

Only Python packages on PyPI. JavaScript, Rust and Go are not supported yet.

How do I install Apiverify for an MCP client?

Use the run command uvx --from apiverify apiverify-mcp, which needs uv installed. Claude Code, Claude Desktop and Cursor configurations are shown in the README.

What does cannot_verify mean?

The answer depends on something static analysis cannot settle, such as module-level __getattr__, a base class re-exported from outside the package, or a file that does not parse.

Is Apiverify free?

Yes. Apiverify is open source, so you can use and self-host it for free.

How do I add Apiverify to Claude Code?

Run this command in your terminal: claude mcp add apiverify -- uvx apiverify

What are the best alternatives to Apiverify?

The closest alternatives to Apiverify are Honestcode, apifacts, Symbol at Version Lookup, Freshdeps MCP and Symbol at Version Lookup.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers