mergestat-mcp
Enables SQL-based querying of git repositories, such as selecting commits, counting contributions, and listing files.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mergestat-mcpshow me the last 5 commits with authors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mergestat-mcp
An MCP server that allows you to query git repositories using SQL via MergeStat.
Features
mergestat_sql: Execute SQL queries against a git repository (e.g.SELECT * FROM commits LIMIT 10).
Related MCP server: Git Metrics MCP Server
Prerequisites
Node.js: Ensure Node.js is installed.
MergeStat CLI: This server wraps the
mergestatCLI tool.macOS (Homebrew):
brew install mergestatFor other platforms, please refer to the MergeStat installation guide.
Installation
Clone or download this repository.
Install dependencies:
npm installMake the entry script executable (optional):
chmod +x index.js
Configuration
Claude Desktop
To use this server with Claude Desktop, add the following configuration to your claude_desktop_config.json file.
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration:
Replace /absolute/path/to/mergestat-mcp with the actual path to this directory.
{
"mcpServers": {
"mergestat": {
"command": "node",
"args": [
"/absolute/path/to/mergestat-mcp/index.js"
]
}
}
}Cursor
To use this server with Cursor:
Open Cursor Settings.
Navigate to Features -> MCP.
Click + Add New MCP Server.
Enter the following details:
Name:
mergestat(or any name you prefer)Type:
command(stdio)Command:
node /absolute/path/to/mergestat-mcp/index.js
(Ensure you replace
/absolute/path/to/mergestat-mcpwith the actual absolute path)
Usage
Once connected, you can ask Claude or Cursor to query your git repository.
Example Prompts:
"Show me the last 5 commits in this repo along with their authors."
"Count how many commits were made by 'Jane Doe'."
"List all files modified in the latest commit."
Note: By default, the server queries the repository in the current working directory of the process. You can optionally specify a repoPath in the tool call if the LLM determines it's necessary, but for most "chat with codebase" scenarios, passing the path to the currently open project is recommended.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables analysis and querying of Git repository content (both public and private) through a unified tool that provides repository summaries, file structures, and full content optimized for LLM consumption.Last updated1
- AlicenseBqualityCmaintenanceAnalyzes git repository metrics to understand team health, development patterns, code quality, and collaboration through natural language queries. Provides insights on commit statistics, bus factor, velocity trends, technical debt, and burnout detection.Last updated12721MIT
- AlicenseBqualityDmaintenanceEnables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.Last updated15107MIT
- Flicense-qualityCmaintenanceEnables querying today's GitHub commits, performing local git operations (status, diff, add, commit, push), and creating GitHub issues through natural language.Last updated
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alc0der/mergestat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server