# apifacts

> apifacts is an open-source MCP server for developer tools. Registry of verified API behaviour that agents query when an HTTP call fails. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://apifacts.dev
- **Repository:** https://github.com/illouminus/apifacts
- **MCP Registry name:** io.github.Illouminus/apifacts
- **Categories:** developer tools
- **Listing updated:** 2026-11-15

## About

Docs drift, and an agent that hits a 200 with an empty array instead of a 429 wastes a session rediscovering the trap. apifacts keeps dated, typed facts about how third-party HTTP APIs, SDK packages and CLIs behave today, and answers with the matching fact and a fix.

The MCP server has a single tool, check, which takes a target, method, status and response body. Facts live as one YAML file each and are confirmed by scheduled, deterministic HTTP probes; the README says no language model is used in verification. Fixes come from a closed vocabulary with typed parameters rather than free text. An offline mode answers from a snapshot packaged in the wheel and sends nothing.

The same registry also ships as a pytest plugin, a CLI, a log scanner and a GitHub Action, so one fact base serves tests, CI and agents.

## Features

- **Single check tool:** One tool takes the target, method, status and body of a failed call and returns matching facts.
- **Probe-verified facts:** Each fact is established by scheduled declarative HTTP probes, not by a language model.
- **Typed fixes:** Suggested fixes are drawn from a closed vocabulary with typed parameters.
- **Offline mode:** apifacts mcp --offline answers from the snapshot in the wheel and makes no requests.
- **CI and test integrations:** A pytest plugin, a GitHub Action and a log scanner surface the same facts.
- **Never an empty answer:** Responses carry facts, observations and an unknown reason when nothing matches.

## Good for

- Look up why a Stripe or GitHub call returned an unexpected status
- Show known facts when a pytest test fails on an HTTP error
- Annotate a red CI build with verified API behaviour
- Let a coding agent check an API quirk before changing code

## Install

### Claude Code (Terminal)

```sh
claude mcp add apifacts -- uvx apifacts
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "apifacts": {
      "command": "uvx",
      "args": [
        "apifacts"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "apifacts": {
      "command": "uvx",
      "args": [
        "apifacts"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "apifacts": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "apifacts"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "apifacts": {
      "command": "uvx",
      "args": [
        "apifacts"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "apifacts": {
      "command": "uvx",
      "args": [
        "apifacts"
      ]
    }
  }
}
```

## Tools

- `check`: Takes target, method, status and body of a failing API call and returns matching verified facts with typed fixes.

## FAQ

### How do I add it to Claude Code?

Run claude mcp add apifacts -- uvx --from 'apifacts[mcp]' apifacts mcp.

### Does it work without network access?

Yes. The --offline flag answers from the snapshot bundled in the wheel.

### Is a model used to verify facts?

No. The README says verification relies only on deterministic probes.

### What does the server expose?

One tool, check, and no resources or prompts.

### Is apifacts free?

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

### How do I add apifacts to Claude Code?

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

### What are the best alternatives to apifacts?

The closest alternatives to apifacts are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/apifacts
