Grasp — Codebase Analysis & Architecture Intelligence logo

Grasp — Codebase Analysis & Architecture Intelligence

Analyzes repositories for dependencies, architecture, security risks, refactoring opportunities, and codebase change impact.

Install Grasp — Codebase Analysis & Architecture Intelligence

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "grasp-codebase-analysis-architecture-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "grasp-mcp-server"
      ],
      "env": {
        "GRASP_HTTP_MCP": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y grasp-mcp-server

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Grasp — Codebase Analysis & Architecture Intelligence MCP server analyzes local paths and GitHub or GitLab repositories through an AST-based analysis engine. It creates sessions that support dependency queries, architecture inspection, security checks, refactoring guidance, and comparison of analysis snapshots. Use it when an agent needs structured codebase context for onboarding, impact analysis, architecture review, or security work. The server runs through MCP and can optionally expose a shared Streamable HTTP endpoint with bearer-token authentication.

Use cases

  • Analyze a repository before joining a project
  • Trace the impact of changing a high-dependency file
  • Check architecture rules against a codebase
  • Generate SBOM and SARIF security artifacts
  • Plan a refactor using dependency and risk data

Key features

  • AST-based repository and local-path analysis
  • Session-based follow-up queries
  • Dependency, architecture, and change-impact analysis
  • Security, license, PII, and regulatory checks
  • CycloneDX, SPDX, and SARIF export
  • Optional Streamable HTTP transport

Tools80

What Grasp — Codebase Analysis & Architecture Intelligence lets your agent do. Expand a tool for its parameters.

Self-reported~1.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/20 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · grasp-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars34Stargazers on the source repository.
npm downloads1.8kPackage downloads in the last 30 days.
Last commit28d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed80Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Grasp — Codebase Analysis & Architecture Intelligence works

What Grasp — Codebase Analysis & Architecture Intelligence MCP server does

Grasp — Codebase Analysis & Architecture Intelligence MCP server turns a local codebase or repository into queryable analysis data for MCP-compatible agents. The repository material describes support for GitHub and GitLab sources, including self-hosted instances, as well as local paths. Its analysis engine builds information about files, dependencies, architecture, complexity, change impact, security patterns, and code relationships.

The server is suited to developers who need more than a single-file explanation. It can identify dependency direction, circular references, architectural layers, risky files, dead code, duplicate code groups, and likely consequences of changing a set of files. It also supports onboarding paths, refactoring plans, type-coverage prioritization, and plain-language explanations of files or functions.

How it works

A full analysis starts with grasp_analyze, which returns a session_id. Follow-up tools use that session to answer targeted questions without requiring the codebase to be analyzed again for every query.

Snapshot-oriented workflows use grasp_diff to compare two analyses or grasp_watch to re-analyze a directory and compare it with an earlier run. Architecture policies can be checked with grasp_rules_check and grasp_config_check, using rules from grasp.yml.

Grasp — Codebase Analysis & Architecture Intelligence MCP server also exposes analysis results in formats used by security and compliance workflows. grasp_sbom produces CycloneDX 1.4 or SPDX 2.3 JSON, while grasp_sarif produces SARIF 2.1.0 output for GitHub Code Scanning. The listed privacy model for the browser application says code stays on the local machine; verify deployment and transport choices separately when using the MCP server over a shared HTTP bridge.

Setup and configuration

The project publishes an npm package named grasp-mcp-server. Without that setting, the material identifies the server as an MCP server but does not provide a complete installation command or required environment-variable list.

The repository also provides integrations or distributions for Claude Code, Cursor, VS Code, JetBrains, and Zed. These should be treated as client or editor entry points rather than evidence that every feature has identical behavior in each environment.

Tools and capabilities

The listed tools cover several areas:

  • Repository structure: grasp_file_deps, grasp_dependents, grasp_cycles, grasp_architecture, grasp_find_path, and grasp_metrics.
  • Maintenance and design: grasp_patterns, grasp_unused, grasp_refactor, grasp_suggest, grasp_similarity, grasp_stale, and grasp_types.
  • Developer workflow: grasp_explain, grasp_onboard, grasp_change_risk, grasp_diff, and grasp_watch.
  • Security and governance: grasp_security, grasp_license, grasp_pii_trace, grasp_duties, and grasp_reg_impact.
  • Architecture controls: grasp_rules_check and grasp_config_check.
  • Reporting: grasp_sbom and grasp_sarif.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Grasp — Codebase Analysis & Architecture Intelligence

Grasp — Codebase Analysis & Architecture Intelligence is an MCP server that connects agents to local paths and GitHub or GitLab repositories for codebase analysis. Its main tools cover dependency graphs, architecture, security, refactoring, onboarding, change risk, snapshot comparison, SBOM generation, and SARIF export.

The project also lists integrations for Claude Code, Cursor, VS Code, JetBrains, and Zed.

Yes, the README explicitly lists Cursor as an MCP-compatible agent and names it among Grasp’s supported entry points.

Yes, `grasp_sbom` exports a software bill of materials in CycloneDX 1.4 or SPDX 2.3 JSON. The tool is intended for dependency-license and supply-chain reporting alongside the server’s other security analysis capabilities.

Set `GRASP_HTTP_MCP=1` to enable the optional MCP-over-HTTP bridge.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGrasp — Codebase Analysis & Architecture Intelligence AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/grasp-codebase-analysis-architecture-intelligence?style=directory)](https://allmcps.com/mcp/grasp-codebase-analysis-architecture-intelligence)
HTML Embed
<a href="https://allmcps.com/mcp/grasp-codebase-analysis-architecture-intelligence"><img src="https://allmcps.com/api/badge/grasp-codebase-analysis-architecture-intelligence?style=directory" alt="Grasp — Codebase Analysis & Architecture Intelligence on AllMCPs" /></a>