repo2graph MCP
A stdio MCP server that allows AI agents to query codebases using an existing repo2graph index. It enables agents to ask questions about the source code and receive answers with citations to specific file and line numbers, supporting both standard and vector-enhanced retrieval.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Ask a codebase a question and get back the source that answers it
- Get citations to specific file and line numbers for code blocks
- Query repositories using hybrid BM25 and dense semantic search
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
repo2graph 4.1.0
{
"version": "4.1.0",
"transport": "stdio",
"identifier": "repo2graph",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"format": "filepath",
"valueHint": "repo_path",
"isRequired": true,
"description": "The repository to serve. Its index is built into <repo_path>/.r2g on the first tool call if one does not exist yet, so no setup step is needed.",
"placeholder": "/path/to/project"
}
],
"runtimeArguments": [
{
"name": "--from",
"type": "named",
"value": "repo2graph[mcp]",
"description": "The MCP server lives behind the `mcp` extra: the CLI and the GitHub Action never import the SDK, so it is not a runtime dependency of the base package."
},
{
"type": "positional",
"value": "repo2graph-mcp",
"valueHint": "command",
"description": "The console script to run out of that package. The bare `repo2graph` entry point is the CLI, not the server."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"repo2graph-mcp": {
"command": "uvx",
"args": [
"repo2graph==4.1.0"
]
}
}
}Cline
{
"mcpServers": {
"repo2graph-mcp": {
"command": "uvx",
"args": [
"repo2graph==4.1.0"
]
}
}
}VS Code
{
"servers": {
"repo2graph-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"repo2graph==4.1.0"
]
}
}
}Claude Desktop
{
"mcpServers": {
"repo2graph-mcp": {
"command": "uvx",
"args": [
"repo2graph==4.1.0"
]
}
}
}Let your agent find its tools
Find servers like repo2graph MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.