DependencyMCP Server
A Model Context Protocol (MCP) server for analyzing code dependencies
Overview
DependencyMCP Server is a Model Context Protocol (MCP) server designed to analyze code dependencies across various programming languages. It assists developers in understanding the structure and relationships within their codebases by generating detailed dependency graphs and providing architectural insights.
To use DependencyMCP, clone the repository, install the required dependencies using npm, and configure it by adding settings to your MCP settings file. Once set up, you can use various tools to analyze codebases and retrieve insights.
- Multi-Language Support: Works with TypeScript, JavaScript, C#, Python, etc. - Dependency Graph Generation: Produces graphs in JSON or DOT format. - Architectural Analysis: Validates and infers code structure against predefined rules. - File Metadata Extraction: Retrieves imports, exports, and metadata from files. - Scoring System: Evaluates codebases against architectural standards.
- Generating visual dependency graphs for large projects.
- Validating architectural compliance in codebases.
- Extracting detailed file metadata for documentation purposes.
- Analyzing and scoring codebases based on architectural patterns.
Add to your AI client
Use these steps to connect DependencyMCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"dependency-mcp-mkearl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"dependency-mcp-mkearl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"dependency-mcp-mkearl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"dependency-mcp-mkearl": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"dependency-mcp-mkearl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"dependency-mcp-mkearl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dependency-mcp-mkearl"
]
}
}
}