# lockdocs MCP server

> Provides exact-version library documentation and API signatures by reading local lockfiles for npm, PyPI, crates.io, and Go.

- Repository: https://github.com/SylphxAI/lockdocs
- Page: https://hostedmcp.org/servers/sylphxai/lockdocs
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.7.5

## Install

### Claude Code

```sh
claude mcp add lockdocs -- npx -y @sylphx/lockdocs
```

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

```json
{
  "mcpServers": {
    "lockdocs": {
      "command": "npx",
      "args": [
        "-y",
        "@sylphx/lockdocs"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "lockdocs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sylphx/lockdocs"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lockdocs","type":"stdio","command":"npx","args":["-y","@sylphx/lockdocs"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "lockdocs": {
      "command": "npx",
      "args": [
        "-y",
        "@sylphx/lockdocs"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add lockdocs -- npx -y @sylphx/lockdocs
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.lockdocs]
command = "npx"
args = ["-y", "@sylphx/lockdocs"]
```

### Gemini CLI

```sh
gemini mcp add -s user lockdocs npx -- -y @sylphx/lockdocs
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "lockdocs": {
      "command": "npx",
      "args": [
        "-y",
        "@sylphx/lockdocs"
      ]
    }
  }
}
```

## FAQ

### Does lockdocs require an API key or account?

No, it requires no account or API key and works locally.

### Can I use lockdocs offline?

Yes, it works offline and has no rate limits after caching.

### Which package managers does it support?

It supports npm (including pnpm, yarn, bun), PyPI (uv, poetry, pdm, pip), crates.io, and Go.

### How does it handle documentation for packages that don't include it?

It can automatically fetch public GitHub documentation for the specific version pinned in your lockfile.
