Skip to main content
MCP server CX Codex

instagit — Claude Code MCP server: what it does, how to install

An MCP server that lets a coding agent read and query any Git repository through one tool, ask_repo. Useful when you need to understand a dependency or plan an upgrade.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add instagit -e INSTAGIT_API_KEY=<INSTAGIT_API_KEY> -- npx -y instagit
Open on GitHub

What instagit does

The server exposes a single tool called ask_repo. It takes repo (a URL, a public Git address or the short owner/repo form), prompt with the question about the code, and an optional ref for a branch, commit or tag. Leave ref out and the analysis follows the repository's default branch.

Answers come back tied to real files with line numbers, so the agent works from what the maintainers wrote. That matters when you ask how authentication is wired in an SDK or what changed between two major releases of a library.

Node.js 18 or newer is required. You do not have to supply an API key: on first run the server registers an anonymous token and saves it to ~/.instagit/token.json. Anonymous calls hit tighter rate limits, so a key from instagit.com pays off once you query often. A separate endpoint can be set with INSTAGIT_API_URL.

What it helps with

  • map the architecture of an unfamiliar library from its source
  • audit how an SDK implements authentication
  • draft a migration plan between two dependency versions
  • trace a bug that crosses into a third-party repository
  • compare two libraries before adding one to a project

Example prompts for the agent

  • Analyze owner/repo and explain how its authentication works
  • Compare main against tag v2.0.0 in owner/repo and list the breaking changes
  • Show me how owner/repo adds a new API endpoint, following its existing patterns

How to install instagit

Platform CLI

claude mcp add instagit -e INSTAGIT_API_KEY=<INSTAGIT_API_KEY> -- npx -y instagit

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about instagit

How do I install instagit in Claude Code?

Run claude mcp add instagit -e INSTAGIT_API_KEY=<INSTAGIT_API_KEY> -- npx -y instagit. The key is optional; without it the server creates an anonymous token.

What does instagit do?

It is an MCP server with one tool, ask_repo, which hands your agent context pulled from a chosen Git repository so the answers rest on actual code.

Does it need an API key?

No. With no INSTAGIT_API_KEY set, an anonymous token is registered and stored in ~/.instagit/token.json. A key from instagit.com raises rate limits and speeds up analysis.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor