Nuanced MCP Server
The Nuanced MCP Server enables LLMs to analyze and understand code structure through function call graphs in Python repositories.
Initialize and manage code graphs: Initialize, switch between, and list all initialized repositories
Analyze function relationships: Retrieve call graphs for specific functions and analyze dependencies between functions or modules
Assess change impact: Understand the potential effects of modifying specific functions
Generate prompts: Create prompts for analyzing functions, dependencies, and change impacts
Access summaries: Retrieve overviews of code graphs and detailed function information
Provides call graph analysis tools for Python codebases, allowing for initialization of code graphs, exploration of function call relationships, dependency analysis, and impact assessment of code changes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nuanced MCP Server analyze the impact of changing the process_data function in utils.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nuanced MCP Server
A Model Context Protocol (MCP) server that provides call graph analysis capabilities to LLMs through the nuanced library.
Overview
This MCP server enables LLMs to understand code structure by accessing function call graphs through standardized tools and resources. It allows AI assistants to:
Initialize call graphs for Python repos
Explore function call relationships
Analyze dependencies between functions
Provide more contextually aware code assistance
Related MCP server: Axon.MCP.Server
API
Tools
initialize_graph
Initialize a code graph for the given repository path
Input:
repo_path(string)
switch_repository
Switch to a different initialized repository
Input:
repo_path(string)
list_repositories
List all initialized repositories
No inputs required
get_function_call_graph
Get the call graph for a specific function
Inputs:
file_path(string)function_name(string)repo_path(string, optional) - uses active repository if not specified
analyze_dependencies
Find all module or file dependencies in the codebase
Inputs (at least one required):
file_path(string, optional)module_name(string, optional)
analyze_change_impact
Analyze the impact of changing a specific function
Inputs:
file_path(string)function_name(string)
Resources
graph://summary
Get a summary of the currently loaded code graph
No parameters required
graph://repo/{repo_path}/summary
Get a summary of a specific repository's code graph
Parameters:
repo_path(string) - Path to the repository
graph://function/{file_path}/{function_name}
Get detailed information about a specific function
Parameters:
file_path(string) - Path to the file containing the functionfunction_name(string) - Name of the function to analyze
Prompts
analyze_function
Create a prompt to analyze a function with its call graph
Parameters:
file_path(string) - Path to the file containing the functionfunction_name(string) - Name of the function to analyze
impact_analysis
Create a prompt to analyze the impact of changing a function
Parameters:
file_path(string) - Path to the file containing the functionfunction_name(string) - Name of the function to analyze
analyze_dependencies_prompt
Create a prompt to analyze dependencies of a file or module
Parameters (at least one required):
file_path(string, optional) - Path to the file to analyzemodule_name(string, optional) - Name of the module to analyze
Usage with Claude Desktop
Add this to your claude_desktop_config.json
UV
{
"mcpServers": {
"nuanced": {
"command": "uv",
"args": [
"--directory",
"/path/to/nuanced-mcp",
"run",
"nuanced_mcp_server.py"
]
}
}
}Available Tools
6 toolsanalyze_change_impactC
Analyze the impact of changing a specific function.
This tool performs a comprehensive impact analysis to help understand what would be affected if you modify the specified function.
Args: file_path: Path to the file containing the function function_name: Name of the function to analyze
Returns: A detailed analysis of the potential impact of changing the function
Inputs: file_path (required), function_name (required).
analyze_dependenciesB
Find all module or file dependencies in the codebase.
Identifies all function dependencies for a file or module in the active repository. This identifies all modules that depend on the specified module or file.
Args: file_path: Path to a specific file to analyze dependencies for module_name: Name of a module to analyze dependencies for (e.g., 'auth' will match 'app.auth', 'auth.users', etc.)
Returns: A list of all functions and files that depend on the specified module
Inputs: file_path, module_name.
get_function_call_graphC
Get the call graph for a specific function.
Args: file_path: Path to the file containing the function function_name: Name of the function to analyze repo_path: Optional repository path (uses active repository if not specified)
Returns: Information about the function's call graph
Inputs: file_path (required), function_name (required), repo_path.
initialize_graphC
Initialize a code graph for the given repository path.
Args: repo_path: Path to the repository to analyze
Returns: Success message with information about the initialized graph
Inputs: repo_path (required).
list_repositoriesB
List all initialized repositories.
Returns: List of initialized repositories
Inputs: no named parameters.
switch_repositoryC
Switch to a different initialized repository.
Args: repo_path: Path to the repository to switch to
Returns: Success message or error
Inputs: repo_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes: analyze_change_impact focuses on modification consequences, analyze_dependencies finds what depends on a module, get_function_call_graph shows function call relationships, and the last three handle repository management. However, analyze_dependencies and get_function_call_graph could be confused as both involve dependency/call analysis, though their descriptions clarify one is module-level and the other function-level.
The naming follows a consistent verb_noun pattern throughout (e.g., analyze_change_impact, get_function_call_graph, list_repositories), with all tools using snake_case. The only minor deviation is that 'initialize_graph' uses a verb without a clear noun object, but it still fits the overall pattern.
With 6 tools, the count is well-scoped for a code analysis server. It covers core functions like impact analysis, dependency tracking, call graph generation, and repository management, with each tool earning its place without being overwhelming or too sparse.
The server covers key code analysis operations (impact, dependencies, call graphs) and repository management, but there are notable gaps. For example, it lacks tools for updating or deleting initialized repositories, and there's no way to clear or reset graphs, which could leave agents in dead ends when managing repository states.
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Codebase knowledge graph — architectural awareness for AI coding agents via MCP
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that transforms codebases into knowledge graphs using Neo4J, enabling AI assistants to understand code structure, relationships, and metrics for more context-aware assistance.28MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that transforms codebases into intelligent, queryable knowledge bases, enabling AI assistants to perform semantic search, explore architecture, and analyze code relationships.166-
- AlicenseNot gradedqualityDmaintenanceMCP server that exposes Python function- and module-level call graphs for agentic coding clients, enabling tools like callers_of, callees_of, and neighborhood queries.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides ultra-efficient code exploration through AST analysis, reducing LLM token usage by up to 95% while enabling instant call graph generation and dependency analysis for massive codebases.MIT