
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets AI assistants inspect codebases, compute design and complexity metrics, analyze Git history, and detect risk hotspots.
Pecorino MCP Server is cataloged as an MCP server attributed to pecorino-mcp. An MCP server that lets AI assistants inspect codebases, compute design and complexity metrics, analyze Git history, and detect risk hotspots. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: GNU Affero General Public License v3 (AGPL-3.0). Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Pecorino MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It runs as a local stdio MCP server or as a network-accessible SSE server.
Yes, it can be run directly via a command-line interface for analysis reports, in addition to running as an MCP server.
README.md · 571ed5507bbd · Fetched 2026-11-13 12:16:43 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server for deep Git history statistics, repository health tracking, and Object-Oriented Design (OOD) metrics analysis.
Pecorino allows Large Language Models (LLMs) and dev tools (such as Claude Desktop or Cursor) to inspect codebases, analyze code structures, compute complexity/maintainability indexes, and detect risk hotspots.
browse, search, update_index, set_workspace, metrics) to your AI assistant.c-fts-uring for robust metadata storage, hybrid vector search (HNSW), and BM25F full-text search, alongside Gorgonzola for property graph traversal.Before setting up the environment, ensure you have the required build tools installed (needed to compile the native gorgonzola database module):
sudo dnf install cmake ninja-build gcc gcc-c++ ccache python3-develsudo apt install cmake ninja-build build-essential ccache python3-devbrew install cmake ninja ccacheClone the repository recursively (to fetch the MCP SDK submodule) and set up the environment:
# Clone recursively
git clone --recursive https://github.com/pecorino-mcp/pecorino.git
cd pecorino
# Run the environment setup script
# This will initialize the .venv, install dependencies, and compile the gorgonzola module
./scripts/setup_env.sh
# Activate the virtual environment
source .venv/bin/activate
Add Pecorino to your claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"pecorino": {
"command": "/path/to/pecorino/.venv/bin/pecorino-mcp",
"args": ["--transport", "stdio"],
"env": {
"PYTHONPATH": "/path/to/pecorino"
}
}
}
}
(Replace /path/to/pecorino with your actual absolute path).
Once connected, your AI assistant can use the following tools:
browseBrowse codebase structure (tree, deps, classes, functions, pagerank, summary) or retrieve specific lines of code with view="code". Use this for structural viewing and code retrieval.
searchUnified search and analysis tool with multiple modes:
hybrid (default) — Blended vector similarity + SQLite3 FTS with RRF and LTR scoring.fts — Full-text keyword search across the codebase.callers / callees — Call graph analysis. Who calls X? What does X call?impact — Deep dependency trace from a file or directory.usages — Combined search + callers in one call (find definition and all callers).intent — Preset AST queries: all_classes, all_functions, entry_points, dead_code, files_by_language.community — Semantic neighborhood and cluster discovery via Leiden community detection.explain — Ranking explanation surfacing why a symbol scored highly.snippet / trace — Contextual code snippet retrieval and deep path tracing.cypher — Embedded Cypher query execution within search.auto — Automatic natural language query intent routing.dsl — Custom JSON DSL query against the codebase AST and graph.functional-analysis — Functional purity analysis.query_graphExecute openCypher queries directly against the Kùzu/Gorgonzola knowledge graph for deep structural and similarity analysis.
update_indexUpdate the AST index for the codebase and return a structural summary. Call this once after cloning or after significant changes.
set_workspaceChange the server's workspace root directory at runtime.
metrics (Admin only)Calculate OOP metrics, cyclomatic complexity, or hotspot risk analysis. Use what: ['hotspots'] for repo-level risk triage.
detect_changesDetect modified files and git reflog changes to track incremental updates.
manage_adrCreate, list, and query Architecture Decision Records (ADRs) within the codebase.
manage_snapshotTake structural snapshots of the codebase graph and index for historical comparison and diffing.
Pecorino relies on a multi-stage Dual Index & Graph Architecture to extract, index, and analyze codebase structure:
src/parsers/): Uses py-tree-sitter to parse source files across multiple languages, extracting definitions for modules, classes, interfaces, functions, and imports.src/mcp_server/gorgonzola_graph.py): Stores code structures, call graphs, dependencies, and caller/callee relationships as an openCypher property graph powered by the gorgonzola / Kùzu engine.src/mcp_server/index_db.py):
embedding.py): Dense vector representations stored in SQLite3 using HNSW vector extension for fast cosine similarity.index_db.py): Native SQLite3 C extension using Linux io_uring for fast asynchronous BM25F full-text search.src/mcp_server/cross_encoder.py & ltr_ranker.py):
src/git/, src/core/): Parses reflogs and commit histories to build temporal coupling graphs and track code churn.src/transports/): Exposes index, vector, and graph databases over standard Model Context Protocol (stdio, SSE) to AI agents.[!TIP] Models Used Highlight
- Embedding Model:
Xenova/all-MiniLM-L12-v2(384-dim local embeddings)- Cross-Encoder Model:
cross-encoder/ms-marco-MiniLM-L-12-v2- Fallback LLM:
ollama/llama3(for naming analyzer)
Beyond the CLI and MCP Server, Pecorino can be used directly as a Python library. Key modules and functions exported via src/__init__.py include:
calculate_maintainability_index(), calculate_mccabe_complexity(), calculate_halstead_metrics()OOPMetricsAnalyzer (computes Ca, Ce, I, A, D)GitDataCollector (harvests commit history and LOC metrics)HotspotDetector, analyze_hotspots() (identifies churn vs. complexity risks)TreeSitterGrammarManager (manages language grammars)ASTNode, ClassDef, FunctionDef, walk(), iter_child_nodes()MetricsExporter, export_to_json(), export_to_yaml()src/cli/ — Command-line interface and entry points.src/core/ — Core data collectors and configuration.src/git/ — Git history and commit log parsers.src/mcp_server/ — MCP server endpoints and core logic.
src/mcp_server/index_pipeline.py — Unified AST extraction and indexing pipeline.src/mcp_server/index_db.py — SQLite3 and c-fts-uring Full-Text Search (FTS) codebase index.src/mcp_server/gorgonzola_graph.py — Gorgonzola graph database adapter.src/mcp_server/ramdisk.py — /dev/shm RAM-disk staging for bulk indexing.src/metrics/ — Maintainability, complexity, and OOP metrics analyzers.src/parsers/ — AST parsing (using Tree-sitter).src/transports/ — MCP Adapters (stdio, fastAPI).src/utils/ — Export formats and helper utilities.modules/ — Git submodules including gorgonzola, py-tree-sitter, and pecorino-utils.docs/ — Architectural documentation (Search, Indexing, Observability & Security, Agent Skills, Evolution Timeline).tests/ — Automated test suites.You can also run Pecorino directly via the terminal:
# Start the stdio MCP server manually
pecorino-mcp --transport stdio
# Start the SSE MCP server (requires Starlette & Uvicorn: pip install -e .[sse])
pecorino-mcp --transport sse --host 127.0.0.1 --port 8000
# Run a CLI analysis and save the report inside a directory
python pecorino.py /path/to/repo /path/to/output_dir
For comprehensive CLI flags, transport details, and configuration options, see the Local Server Deployment Guide.
This project is licensed under the GNU Affero General Public License v3 (AGPL-3.0) - see the LICENSE file for details. Contributions, bug reports, and improvements are welcome! Open an issue or submit a pull request with small, focused changes.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Pecorino MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/pecorino)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.