Repo Context MCP provides programmatic access to repository contents for integrations and automation. It can list directories/files, read any file, return the README, perform TypeScript type analysis (via ts-morph), and search for OpenAPI/Swagger spec files. Supports local repo paths and reading from private GitHub repos when GITHUB_TOKEN is set in the environment. Ideal for code analysis, docs generation, and CI pipelines.
Server Config
{
"mcpServers": {
"repo-context": {
"type": "stdio",
"command": "npx",
"args": [
"@pablopeek/repo-context-mcp"
],
"env": {
"ENVIRONMENT": "local",
"GITHUB_TOKEN": "<SET_GITHUB_TOKEN>",
"GITHUB_NAME": "<SET_GITHUB_NAME>"
}
}
}
}