# StaleDocs

> StaleDocs is an open-source MCP server for developer tools. Flag README and docs sections that a pull request's API change left outdated. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Website:** https://staledocs.com
- **Repository:** https://github.com/mr-min-max/staledocs
- **MCP Registry name:** io.github.mr-min-max/staledocs
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

StaleDocs compares a pull request's base and head commits, keeps only changes to the package's public boundary, and lists the Markdown sections that mention a changed symbol but were not updated. Signatures are parsed with an AST rather than guessed, so no model decides whether something changed. It needs no API key and never writes to the repository on its own.

The report shows changed symbols with before and after signatures, marks breaking changes and adds breaking-change and docs-stale labels. One command, audit, checks a whole repository for package scripts, paths and class members that Markdown still names but the code no longer has, including AGENTS.md and CLAUDE.md. Supported languages are TypeScript, JavaScript and Python.

It runs as a report-only GitHub Action, a CLI, or a Codex and Claude Code plugin whose maintain-documentation command lets the assistant draft a fix that StaleDocs validates first. Over MCP, prepare_documentation_update hands the assistant the exact sections and signatures. The site reports 7 of 10 agreements on external pull requests, says it checks API changes and not prose accuracy, and only maps docs that name the changed symbol. The current release is a beta.

## Features

- **Public API diffing:** Parses signatures with an AST and compares base and head.
- **Stale section mapping:** Points to Markdown sections that mention changed symbols.
- **Repository audit:** Finds scripts, paths and members docs mention that no longer exist.
- **Report-only Action:** Posts a comment and labels without failing the build.
- **Validated fixes:** Checks an assistant's drafted documentation update before it is written.
- **No model needed:** Deterministic analysis with no API key.

## Good for

- Catch README drift in a pull request
- Audit a repo's docs and agent instruction files
- Have an assistant update only the affected doc sections
- Label breaking changes automatically

## Install

### Claude Code (Terminal)

```sh
claude mcp add staledocs -- npx -y staledocs
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "staledocs": {
      "command": "npx",
      "args": [
        "-y",
        "staledocs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "staledocs": {
      "command": "npx",
      "args": [
        "-y",
        "staledocs"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "staledocs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "staledocs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "staledocs": {
      "command": "npx",
      "args": [
        "-y",
        "staledocs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "staledocs": {
      "command": "npx",
      "args": [
        "-y",
        "staledocs"
      ]
    }
  }
}
```

## Tools

- `prepare_documentation_update`: Give the assistant the exact doc sections and before and after signatures to update.

## FAQ

### Does it need an API key?

No. The analysis is deterministic AST checking.

### Which languages work?

TypeScript, JavaScript and Python.

### Will it edit my repository?

Not on its own; the assistant applies approved Markdown.

### How accurate is it?

The site reports 7 of 10 agreements with hand-labelled expectations on ten external pull requests, and publishes the misses.

### Is StaleDocs free?

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

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

Run this command in your terminal: claude mcp add staledocs -- npx -y staledocs

### What are the best alternatives to StaleDocs?

The closest alternatives to StaleDocs 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/staledocs
