Basic information
About NervusDB MCP Server
NervusDB transforms codebases into queryable knowledge graphs, enabling call hierarchy analysis, impact assessment, and automated documentation.
NervusDB is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by nervusdb. It exposes 20 tools, including workflow.startTask, workflow.submitForReview, project.getStructure, project.readFile and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 6 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, productivity.
Setup
{
"mcpServers": {
"nervusdb-mcp": {
"command": "npx",
"args": [
"-y",
"@nervusdb/mcp"
]
}
}
}
{
"mcpServers": {
"nervusdb-mcp": {
"command": "npx",
"args": [
"-y",
"@nervusdb/mcp"
]
}
}
}
{
"servers": {
"nervusdb-mcp": {
"command": "npx",
"args": [
"-y",
"@nervusdb/mcp"
]
}
}
}
NervusDB MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"nervusdb-mcp": {
"command": "npx",
"args": [
"-y",
"@nervusdb/mcp"
]
}
}
}
NervusDB MCP Server tools
- workflow.startTask — 创建任务分支并登记分支台账。
- workflow.submitForReview — 推送当前分支、创建 PR,并更新分支台账状态。
- project.getStructure — 返回项目文件结构及统计信息。 支持maxDepth限制树深度、limit限制文件数量、pathFilter过滤路径。 对于大型项目,建议使用这些参数减少响应大小。
- project.readFile — 读取绝对路径的文件(仅用于调试场景)。
- project.analyzeImpact — Analyze the impact of changing a symbol (function/class/interface). Provides intelligent risk assessment, test coverage analysis, and actionable recommendations. Enhanced mode: provide "symbol" and "type" for deep analysis with risk scoring. Legacy mode: provide "filePath" or "functionName" for basic graph queries.
- project.findRelatedFiles — Find files related to the target file using intelligent multi-relationship scoring. Enhanced mode: weighted scoring (IMPORTS 1.0, CALLS 0.8, IMPLEMENTS 0.9, shared deps 0.3). Legacy mode: simple counting. Provides detailed explanations for each relationship.
- code.readFile — Read file content by project root and relative path
- code.writeFile — Write content to a project file, confirm flag required.
- code.getDefinition — Find the definition location of a symbol (function/class/interface/variable). Supports exact/prefix/contains/fuzzy matching with confidence scoring. Returns file path, line number, and signature. Target: ≥95% accuracy.
- code.findReferences — Finds all references to a symbol (function, class, etc.) across the project. High recall.
- code.getCallHierarchy — Visualize function call hierarchy (callers and callees) as an ASCII tree or Mermaid diagram. Shows who calls this function (upstream) and what this function calls (downstream).
- code.detectSmells — Detect common code smells and anti-patterns in functions. Provides severity levels, explanations, and refactoring suggestions.
- code.suggestRefactorings — Generate intelligent refactoring suggestions based on detected code smells. Provides priority scoring, impact analysis, and step-by-step instructions.
- code.analyzeDocumentation — Analyze the completeness of code documentation for specified symbols. Identifies missing, partial, or complete documentation with specific suggestions.
- code.generateDocumentation — Automatically generate documentation (JSDoc/TSDoc/docstring) for specified symbols. Uses context from code structure and naming patterns.
- db.getStats — Read metadata for indexed project
- db.query — Execute typed or raw queries against the knowledge graph
- db.rebuildIndex — Trigger indexing service to rebuild shadow index for the project with telemetry.
- db.getNodeDetails — Retrieve complete information for a specific node by ID. Use this after db.query to get full node details (AST, source code, etc.) that are omitted from query result summaries.
- db.getHealth — Validate index presence, fingerprint freshness, and WAL size limits.
Overview
What is NervusDB?
Transforms codebases into queryable knowledge graphs using repomix and tree-sitter to extract code entities, relationships, and dependencies for call hierarchy analysis, impact assessment, code smell detection, and automated documentation generation.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In