by nervusdb
NervusDB transforms codebases into queryable knowledge graphs, enabling call hierarchy analysis, impact assessment, and
Transforms codebases into queryable knowledge graphs to analyze code dependencies, relationships, and structure for impact assessment and automated workflow management.
NervusDB is a community-built MCP server published by nervusdb that provides AI assistants with tools and capabilities via the Model Context Protocol. NervusDB transforms codebases into queryable knowledge graphs, enabling call hierarchy analysis, impact assessment, and It is categorized under developer tools, productivity. This server exposes 20 tools that AI clients can invoke during conversations and coding sessions.
You can install NervusDB in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
NervusDB is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We evaluated NervusDB against two servers with overlapping tools; this profile had the clearer scope statement.
According to our notes, NervusDB benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
NervusDB reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
NervusDB is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Useful MCP listing: NervusDB is the kind of server we cite when onboarding engineers to host + tool permissions.
NervusDB is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
NervusDB reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend NervusDB for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
I recommend NervusDB for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
NervusDB reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 67
Official MCP server for NervusDB - Code knowledge graph with repomix integration
@nervusdb/core and repomixInstall Dependencies
pnpm install
Run the Server
# For development
pnpm start:stdio
# Build for production
pnpm build
Index a Project
pnpm synapse:index -p /path/to/your/project
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"nervusdb-mcp": {
"command": "npx",
"args": ["-y", "@nervusdb/mcp"]
}
}
}
Alternatively, if you've installed the package globally:
{
"mcpServers": {
"nervusdb-mcp": {
"command": "nervusdb-mcp"
}
}
}
Installation Options:
# Option 1: Use npx (recommended, no installation needed)
# Just add the config above, Claude will run it automatically
# Option 2: Install globally for faster startup
npm install -g @nervusdb/mcp
Workflow tools (workflow.submitForReview) require GitHub authentication to create pull requests. The server supports 3 authentication methods with automatic fallback:
Method 1: Environment Variables (Recommended for CI/CD)
# Set GITHUB_TOKEN or GH_TOKEN
export GITHUB_TOKEN=ghp_your_personal_access_token
# Or in your shell profile (~/.zshrc or ~/.bashrc)
echo 'export GITHUB_TOKEN=ghp_xxx' >> ~/.zshrc
Method 2: GitHub CLI (Recommended for Local Development)
# Install gh CLI
brew install gh # macOS
# Or see https://cli.github.com/ for other platforms
# Authenticate
gh auth login
Method 3: Claude Desktop Configuration
Add environment variables to Claude Desktop config:
{
"mcpServers": {
"nervusdb-mcp": {
"command": "npx",
"args": ["-y", "@nervusdb/mcp"],
"env": {
"GITHUB_TOKEN": "ghp_your_personal_access_token"
}
}
}
}
Authentication Priority:
GITHUB_TOKEN environment variable (highest priority)GH_TOKEN environment variablegh auth token command (if gh CLI is authenticated)If no authentication is available, workflow tools will provide clear error messages with setup instructions.
The NervusDB MCP server provides 13 tools across 4 categories:
workflow.startTask - Create task branch and update ledgerworkflow.submitForReview - Push branch and create pull request (requires GitHub authentication)project.getStructure - Get project file structure with statisticsproject.analyzeImpact - Analyze code impact based on knowledge graphproject.findRelatedFiles - Find files related to a target fileproject.readFile - Read arbitrary file contentcode.readFile - Read project file contentcode.writeFile - Write content to project file (requires confirmation)code.runTests - Run tests using Vitest and return resultsdb.getStats - Get index metadata and statisticsdb.query - Execute typed or raw queries against knowledge graphdb.rebuildIndex - Rebuild project index with telemetrydb.getHealth - Check index health with fingerprint validation// 1. Start a new task
workflow.startTask({
taskId: '42',
owner: 'alice',
designDoc: 'docs/design/feature-42.md',
});
// 2. Analyze code impact
project.analyzeImpact({
projectPath: '/workspace/my-project',
functionName: 'calculateTotal',
limit: 20,
});
// 3. Read a file
code.readFile({
projectPath: '/workspace/my-project',
file: 'src/services/orderService.ts',
});
// 4. Run tests
code.runTests({
projectPath: '/workspace/my-project',
filter: 'orderService',
});
// 5. Query the knowledge graph
db.query({
projectPath: '/workspace/my-project',
query: {
type: 'typed',
filter: { predicate: 'CONTAINS' },
options: { limit: 100 },
},
});
// 6. Submit for review
workflow.submitForReview({
confirm: true,
title: 'feat: optimize order calculation',
reviewers: ['bob'],
});
repomix to collect project files and @nervusdb/core to build a knowledge graphnervusdb-mcp/
├── src/
│ ├── server/ # MCP server implementation
│ ├── tools/ # Tool implementations (workflow, project, code, db)
│ ├── services/ # Business logic services
│ ├── domain/ # Core domain logic (indexing, query)
│ └── utils/ # Shared utilities
├── bin/ # CLI executables
├── docs/ # Documentation
└── tests/ # Test suites
# Install dependencies
pnpm install
# Run tests
pnpm test
# Check code quality
pnpm check
# Build for production
pnpm build
See CONTRIBUTING.md for development guidelines.
MIT
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.