OpenDigger MCP Server
Model Context Protocol server for OpenDigger that provides advanced repository analytics and insights through comprehensive tools and prompts for analyzing GitHub repositories.
Get this MCP server
Model Context Protocol server for OpenDigger that provides advanced repository analytics and insights through comprehensive tools and prompts for analyzing GitHub repositories.
Installation
From Source Code
git clone https://github.com/X-lab2017/open-digger-mcp-server.git
cd open-digger-mcp-server && cd mcp-server
npm install
npm run build
npm start
Configuration
Cursor MCP
{
"mcpServers": {
"open-digger": {
"command": "node",
"args": ["/full/path/to/dist/index.js"],
"cwd": "/full/path/to/project",
"env": {
"CACHE_TTL_SECONDS": "300"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
get_open_digger_metric |
Get metrics for a single repository |
get_open_digger_metrics_batch |
Batch operations for multiple metrics |
compare_repositories |
Comparative analysis of multiple repositories |
analyze_trends |
Analyze growth trends over time periods |
get_ecosystem_insights |
Ecosystem analytics and insights |
server_health |
System diagnostics and health monitoring (Beta) |
Features
- 6 comprehensive tools for repository analytics
- 3 specialized prompts for different analysis types
- Support for 20+ metrics including openrank, stars, forks, contributors, bus_factor
- Repository comparison and competitive analysis
- Growth trend analysis over time periods
- Comprehensive repository health reports
- Developer activity and contribution analysis
- Ecosystem analytics and insights
- Batch operations for multiple metrics
- Caching support for improved performance
Environment Variables
Optional
CACHE_TTL_SECONDS- Cache configuration time-to-live in secondsSSE_PORT- Optional SSE server portSSE_HOST- Optional SSE server host
Usage Examples
Compare microsoft/vscode and facebook/react using the compare_repositories tool
Generate a health report for microsoft/vscode using the repo_health_analysis prompt
Analyze contributors growth trends for microsoft/vscode over 2 years
Notes
The server provides 3 specialized prompts: repo_health_analysis (comprehensive repository health reports), repo_comparison (repository competitive analysis), and developer_insights (developer activity analysis). Supports extensive metrics including core metrics (openrank, stars, forks, contributors), advanced metrics (technical_fork, bus_factor, releases), and additional metrics (change_requests, issue_response_time, code_change_lines). Compatible with Cursor AI IDE, VS Code, Claude Chat, and MCP Inspector.