Skip to content
MCP server

pinright

MCP server and CLI giving coding agents version-matched docs and a dependency check

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
1.0.0
Listing updated
3 days ago

About pinright

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

pinright targets a specific failure: coding agents write dependency versions from memory, and docs-only MCP servers do not check what gets pinned. It serves documentation for the exact version being installed and returns a verdict on every package an agent adds, covering known advisories, malware records, lookalike names and packages that do not exist, and it suggests a fix on the same release line.

Beyond the MCP server, it ships a pre-install hook that blocks a risky install command before it runs, a CLI and a GitHub Action with SARIF output. The site says setup covers 16 clients, six of them with the hook: Claude Code, Cursor, VS Code with Copilot, OpenAI Codex, Gemini CLI and Windsurf. It needs Node 20.9 or newer, with no account, key or telemetry.

The project's own benchmark reports 0% of direct pins with an advisory versus 40% to 42% with no docs tool; the methods page documents caveats. An optional GITHUB_TOKEN raises the GitHub API limit from 60 to 5,000 requests an hour.

Install

Run in a terminal

claude mcp add pinright --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y pinright

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pinright": {
      "command": "npx",
      "args": [
        "-y",
        "pinright"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pinright": {
      "command": "npx",
      "args": [
        "-y",
        "pinright"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "pinright": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pinright"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "pinright": {
      "command": "npx",
      "args": [
        "-y",
        "pinright"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "pinright": {
      "command": "npx",
      "args": [
        "-y",
        "pinright"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Configuration

  • GITHUB_TOKENOptional. Raises the GitHub API limit from 60 to 5,000 requests an hour (monorepo docs, upgrade guides). Read-only use.
  • PINRIGHT_GH_CLIOptional. 1 uses the GitHub CLI login (gh auth token) when GITHUB_TOKEN is not set.

Tools this server provides (2)

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

check-package
Verdict on a dependency with the full advisory list and the version to pin.
get-docs
Documentation for a specific library version.

What it does

Version-matched docs
get-docs serves documentation for the version the agent will install.
Dependency verdicts
check-package reports advisories, malware, lookalike names and nonexistent versions.
Pre-install hook
Blocks a risky install and names a fix on the same release line.
Manifest audit
check-manifest and a GitHub Action audit a whole lockfile with SARIF output.
Local and private
Runs locally with no account, key or telemetry.

Good for

  • Stop an agent pinning a vulnerable library version
  • Give an agent docs for the exact version in a project
  • Audit a lockfile in CI
  • Catch typo-squatted package names before install

Pricing

Open source

MIT licensed, free

Prices change. Check pinright.dev before you buy.

pinright FAQ

Does it need an account or API key?

No. The site says no account, key or telemetry; a GitHub token is optional.

Which clients get the hook?

Six: Claude Code, Cursor, VS Code with GitHub Copilot, OpenAI Codex, Gemini CLI and Windsurf.

What licence is it under?

MIT, open source.

What are the requirements?

Node 20.9 or newer.

Is pinright free?

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

How do I add pinright to Claude Code?

Run this command in your terminal: claude mcp add pinright --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y pinright

What are the best alternatives to pinright?

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

Alternatives to pinright

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools