GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Codebase analysis: dependency graphs, security scanning, and refactor plans for GitHub and GitLab.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"grasp": {
"command": "npx",
"args": [
"-y",
"grasp-mcp-server"
]
}
}
}在终端中运行这条命令
claude mcp add grasp -- npx -y grasp-mcp-server粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"grasp": {
"command": "npx",
"args": [
"-y",
"grasp-mcp-server"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"grasp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"grasp-mcp-server"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ashfordeOU 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.21.3)于4天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Expose Grasp's codebase analysis engine as MCP tools for Claude Code and other LLM agents.
Supports GitHub repositories and local directories. Analyzes dependency graphs, architecture layers, circular deps, security issues, design patterns, dead code, code metrics, git history, duplicate detection, cross-repo comparison, monorepo workspaces, runtime call graphs, database schema coupling, API surface maps, and migration planning.
*Force-directed dependency graph — the same data the MCP server exposes via grasp_analyze, grasp_dependents, graph_query, etc.*
Current version: 3.21.3 — 150 tools + 8 MCP Resources + 2 guided Prompts.
New in v3.21.0 — Multimodal Knowledge Graph: ingest any artifact (code, Markdown, PDF, Word .docx, Excel .xlsx, HTML, images via OCR, audio/video via local Whisper, YouTube) into a queryable semantic knowledge graph, then ask it in natural language. New tools: grasp_ingest, grasp_kg_ask, grasp_kg_trace, grasp_kg_explain, grasp_kg_stats, grasp_kg_export (Cypher/Neo4j/GraphML/JSON/Mermaid), grasp_llm_status. Pluggable LLM backends (Anthropic, OpenAI, Gemini, DeepSeek, Kimi, Azure, Bedrock, Ollama — local-first, cloud opt-in; extraction falls back to a deterministic local extractor with zero credentials). Optional MCP-over-HTTP transport for shared team access (GRASP_HTTP_MCP=1, optional API key). Three new AST languages (Bash, Elixir, Julia → 19 tree-sitter-backed). See ## Multimodal Knowledge Graph below.
v3.20.0 added: Full security scanning suite — grasp_vulnerabilities covers five threat vectors (OSV.dev dependency CVEs, NIST NVD container/runtime CVEs, local supply-chain integrity checks, Socket.dev behavioral analysis, and scheduled grasp_vuln_watch monitoring), plus skip_container / skip_socket / skip_integrity fast-scan flags.
v3.19.0 added: Team Dashboard visual parity with the Grasp app — teal brand sweep, Lucide SVG icon system, multi-provider auth (GitLab, GitHub Enterprise, Bitbucket, Azure DevOps, Gitea), mobile More menu, keyboard shortcut popover.
v3.18.0 added: 10 new MCP tools (grasp_hub_nodes, grasp_bridge_nodes, grasp_surprising_connections, grasp_knowledge_gaps, grasp_suggested_questions, grasp_minimal_context, grasp_traverse, grasp_semantic_search, grasp_apply_refactor, grasp_architecture_overview); 3 graph export formats (grasp_export_graphml, grasp_export_cypher, grasp_export_obsidian); TS-config path-alias and Jedi-style Python import resolvers; Claude Code slash commands; token-reduction eval harness (scripts/eval-token-reduction.mjs); localized READMEs (Hindi/Japanese/Korean/Simplified Chinese).
Recent additions *(see CHANGELOG.md for full history)*:
grasp_vulnerabilities + grasp vulns CLI); architecture drift detection (grasp_snapshot + grasp_diff_snapshots + grasp drift CLI); org-level dashboard (grasp_org_summary + grasp org CLI); test-coverage gap map; graph schema v3 (TestFile nodes, TESTS/COVERS edges).grasp_diff_symbols, grasp_exec_flow, grasp_skillmd, grasp_hooks, grasp_mro, grasp_communities, grasp_contracts); confidence scoring; wiki generator; registry tools.grasp_detect_changes; 8 MCP Resources; 2 MCP Prompts; grasp setup one-command editor auto-config.Verticals shipped before v3.15: aerospace/safety-critical (requirement traceability, MISRA, DO-178C, ECSS-E-ST-40C, Ada/SPARK), AI research (safety-constraint tracing, eval coverage, ML pipeline DAG, Jupyter notebooks), enterprise (SBOM CycloneDX/SPDX, DORA, AI-powered ADR, PII trace, separation of duties, finance latency / model risk), OS/kernel (subsystem boundaries, ABI stability, Kconfig, IRQ graph, patch series impact), open source (good-first-issues, fork divergence, OpenSSF scorecard, deps.dev), and a hosted SaaS API (saas/).
Every release is signed. Verify before installing:
npm package (SLSA provenance):
npm install -g @sigstore/verify # one-time
sigstore verify npm grasp-mcp-server@3.21.1
Docker image (Cosign keyless signature):
cosign verify \
--certificate-identity-regexp="https://github.com/ashfordeOU/grasp/.github/workflows/publish.yml" \ --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \ ghcr.io/ashfordeou/grasp:latest
Signatures are stored transparently in the Sigstore Rekor public ledger.
Beyond code analysis, Grasp can ingest any artifact into a queryable semantic knowledge graph and answer natural-language questions grounded with citations.
// Ingest a folder of docs, a PDF, or a URL (incl. YouTube)
grasp_ingest { "source": "./docs" } grasp_ingest { "source": "/papers/spec.pdf" } grasp_ingest { "source": "https://youtu.be/…" } // local Whisper transcription
// Ask it grasp_kg_ask { "question": "How does auth flow through the billing service?" } grasp_kg_trace { "from": "Auth", "to": "Postgres" } // shortest relationship path grasp_kg_explain { "name": "Billing Service" } // neighbourhood + sources grasp_kg_stats {} // counts + god-nodes grasp_kg_export { "format": "cypher", "out_path": "kg.cypher" } // Neo4j/FalkorDB
Local-first, cloud opt-in. Code parsing stays deterministic (tree-sitter AST). Semantic entity/relationship extraction uses whichever LLM you configure and auto-detects a local Ollama before any cloud key; with no LLM at all it falls back to a deterministic extractor so everything still works offline. Every edge is tagged EXTRACTED (stated in the source) vs INFERRED (derived), with a source locator.
| Backend | Env |
|---|---|
| Ollama (local, default) | runs at localhost:11434 — nothing else needed |
| Anthropic / OpenAI / Gemini / DeepSeek / Kimi | ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY / DEEPSEEK_API_KEY / MOONSHOT_API_KEY |
| Azure OpenAI / AWS Bedrock | AZURE_OPENAI_* / AWS_* |
Select explicitly with GRASP_LLM_PROVIDER + GRASP_LLM_MODEL, or per-call via the provider/model/api_key tool args. Run grasp_llm_status to see what's available.
Optional parsers (installed on demand, keeping the core install lean): npm i pdf-parse mammoth xlsx tesseract.js youtube-transcript. Audio/video transcription additionally needs ffmpeg on PATH.
GRASP_HTTP_MCP=1 GRASP_HTTP_API_KEY=… grasp-mcp # serves Streamable HTTP on :7333/mcp
Point any MCP client at http://host:7333/mcp (send the key as Authorization: Bearer … or x-api-key). /health returns liveness. Grasp's tools are stateless, so one endpoint serves a team's agents.
The multimodal pipeline is MCP-server-side (Node) and does not run in the browser app — see the source layout under mcp/src/:
ingest/* — artifact parsers (PDF, Word .docx, Excel .xlsx, HTML, image OCR, audio/video, URL, YouTube; heavy parsers lazy-loaded on demand)llm/provider.ts — pluggable multi-provider LLM layer (local-first Ollama auto-detect → cloud key → deterministic fallback)semantic/* — SQLite knowledge-graph store, hybrid BM25 + vector retrieval, BFS path-tracing, hub/god-node detectiontree-sitter/* — deterministic AST parsing across 19 languagescd mcp
npm install npm run build
Add to ~/.claude/claude_mcp_settings.json:
{
"mcpServers": { "grasp": { "command": "node", "args": ["/absolute/path/to/grasp/mcp/dist/index.js"] } } }
Or install globally via npm:
{
"mcpServers": { "grasp": { "command": "npx", "args": ["grasp-mcp-server"] } } }
| Tool | Description |
|---|---|
grasp_analyze | Full analysis — run first, returns session_id |
grasp_file_deps | Outgoing deps for a file (what it imports) |
grasp_dependents | Incoming deps — blast radius if you change this file |
grasp_cycles | All circular dependency chains |
grasp_architecture | Files grouped by layer (services/data/utils/test…) |
grasp_hotspots | Most coupled + complex files, ranked |
grasp_metrics | Lines, functions, complexity, fan-in/fan-out per file |
grasp_find_path | Shortest dependency path between two files |
grasp_security | Hardcoded secrets, SQL injection risks, insecure patterns |
grasp_patterns | Detected design patterns and anti-patterns |
grasp_unused | Dead code — functions defined but never called |
grasp_sessions | List persisted analysis sessions — survive restarts, expire after 7 days |
grasp_config_check | Run grasp.yml architecture rules against a session — returns violations with severity |
| Tool | Description |
|---|---|
grasp_diff | Compare two session snapshots — files added/removed, health delta |
grasp_watch | Re-analyse a local directory and diff against a prior session |
grasp_timeline | Last N git commits with per-commit changed files and co-change matrix |
grasp_cross_repo | Compare two sessions — shared filenames, diverged functions, workspace info |
grasp_similarity | Ranked duplicate clusters, code clones, naming clashes, hottest files |
| Tool | Description |
|---|---|
grasp_suggest | Ranked refactoring suggestions from hotspot + issue data |
grasp_explain | Plain-English explanation of any file or function |
grasp_rules_check | Run architecture rules and report all violations |
grasp_refactor | Step-by-step refactor plan with metrics table for a file or session |
grasp_coverage | Test coverage overlay — files with no test counterpart |
grasp_vulnerabilities | OSV.dev SCA scanner — known CVEs in declared dependencies (npm/PyPI/Go/Cargo/Maven). Severity-classified (CVSS), fix-version suggestions, severity filter (all/critical/high/medium/low). Pairs with grasp vulns CLI (exit 1 on critical/high) — *new in v3.17.0* |
| Tool | Description |
|---|---|
grasp_issues | Map GitHub Issues to the files they mention |
grasp_contributors | Per-file ownership, bus-factor score, top contributors |
grasp_bundle | Bundle size treemap — files ranked by size with category breakdown |
grasp_dep_impact | Impact of upgrading a dependency — which files import it |
grasp_pr_comment | Generate a PR health comment with blast radius for changed files |
grasp_embed | Generate iframe, README badge, and React snippet for sharing |
grasp_dead_packages | npm deps declared in package.json but never imported by any source file |
grasp_sarif | Export analysis as SARIF 2.1.0 for GitHub Code Scanning upload |
| Tool | Description |
|---|---|
grasp_runtime_calls | Merge a GraspTracer JSON trace with static edges — shows actual call paths and hot files |
| grasp_db_coupling | ORM/SQL-to-table coupling map — god tables, hig
只显示了开头部分;其余内容请在仓库中阅读