Back to Home
drewdrewH icon

code-graph-context

Verified Safe

by drewdrewH

Overview

A Model Context Protocol (MCP) server that builds and queries a knowledge graph of TypeScript codebases in Neo4j, supporting semantic search, impact analysis, dead code detection, and multi-agent coordination through stigmergy.

Installation

Run Command
node dist/mcp/mcp.server.js

Environment Variables

  • OPENAI_API_KEY
  • NEO4J_URI
  • NEO4J_USER
  • NEO4J_PASSWORD
  • NEO4J_QUERY_TIMEOUT_MS
  • NEO4J_CONNECTION_TIMEOUT_MS
  • OPENAI_EMBEDDING_TIMEOUT_MS
  • OPENAI_ASSISTANT_TIMEOUT_MS
  • OPENAI_ASSISTANT_ID

Security Notes

The default Neo4j password 'PASSWORD' is a critical security vulnerability if the server is used without overriding the NEO4J_PASSWORD environment variable. The server interacts with external services (Neo4j, OpenAI), requiring secure configuration of connection details and API keys. The NL-to-Cypher tool includes validation steps (`EXPLAIN` and `validateProjectIdFilters`) to mitigate Cypher injection risks and enforce project isolation. File path inputs are validated against traversal attacks. There is no explicit user authentication or authorization built into the MCP server itself, implying it's expected to run in a trusted environment or behind an authenticated client.

Similar Servers

Stats

Interest Score33
Security Score6
Cost ClassHigh
Avg Tokens3500
Stars6
Forks1
Last Update2026-01-07

Tags

Code GraphTypeScriptNeo4jAI AgentSemantic SearchMonorepo