Mergestat
БесплатноНе проверенEnables SQL queries against git repositories via MergeStat, allowing users to analyze commits, authors, and files using natural language.
Описание
Enables SQL queries against git repositories via MergeStat, allowing users to analyze commits, authors, and files using natural language.
README
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).
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 install - Make 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.json - Windows:
%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)- Name:
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.
Установка Mergestat
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/alc0der/mergestat-mcpFAQ
Mergestat MCP бесплатный?
Да, Mergestat MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Mergestat?
Нет, Mergestat работает без API-ключей и переменных окружения.
Mergestat — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Mergestat в Claude Desktop, Claude Code или Cursor?
Открой Mergestat на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Mergestat with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
