🤖 Claude Desktop Setup
Configure Nexus MCP Server with Claude Desktop to access the complete suite of 500+ tools and advanced features including dynamic tool creation.
📋 Prerequisites
Required Software
- Claude Desktop App - Latest version from Anthropic
- Python 3.8+ - For running Nexus MCP Server
- Docker - Optional but recommended for dynamic tools
- Git - For cloning the repository
⚙️ Installation & Configuration
Step 1: Install Nexus MCP Server
# Clone the repository
git clone https://github.com/fabriziosalmi/nexus-mcp-server.git
cd nexus-mcp-server
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Test installation
python client.py add '{"a": 10, "b": 5}'
Step 2: Configure Claude Desktop
Claude Desktop reads its configuration from a JSON file in your user directory. The location depends on your operating system:
🖥️ Windows
%APPDATA%\Claude\claude_desktop_config.json
🍎 macOS
~/Library/Application Support/Claude/claude_desktop_config.json
🐧 Linux
~/.config/Claude/claude_desktop_config.json
Step 3: Add Nexus Configuration
Create or edit the Claude Desktop configuration file with the following content:
{
"mcpServers": {
"nexus": {
"command": "python",
"args": ["/absolute/path/to/nexus-mcp-server/multi_server.py"],
"env": {
"PYTHONPATH": "/absolute/path/to/nexus-mcp-server",
"MCP_SERVER_NAME": "NexusServer",
"LOG_LEVEL": "INFO"
}
}
}
}
/absolute/path/to/nexus-mcp-server with the actual absolute path to your Nexus installation directory. Relative paths will not work!
Step 4: Pre-configured Templates
Nexus provides ready-to-use configuration templates in the repository:
🎯 Full Configuration
claude_desktop_config.json - Complete feature set
cp claude_desktop_config.json ~/.config/Claude/claude_desktop_config.json
⚡ Minimal Configuration
claude_desktop_config_minimal.json - Essential tools
cp claude_desktop_config_minimal.json ~/.config/Claude/claude_desktop_config.json
✅ Verification & Testing
Step 1: Restart Claude Desktop
- Completely quit Claude Desktop
- Wait 5 seconds
- Restart the application
- Wait for the server to initialize (10-15 seconds)
Step 2: Test the Connection
In a new Claude conversation, try these test commands:
🧮 Basic Math Test
Can you add 15 and 27 using your tools?
Expected: Claude will use the add tool and return 42
🔧 System Info Test
What's the current system information?
Expected: Claude will use system_overview tool
Step 3: Test Advanced Features
🚀 Dynamic Tool Creation Test
Try asking Claude to create a custom tool:
"Can you create a tool that converts temperatures from Celsius to Fahrenheit and test it with 25°C?"
Claude should use the create_and_run_tool function to create and execute a custom temperature converter.
🎯 Available Features
Tool Categories (500+ Tools)
🧮Mathematical Operations
- Basic and advanced calculations
- Statistical analysis
- Financial calculations
- Unit conversions
🔒Security & Cryptography
- Password generation
- Encryption/decryption
- Hash generation
- Network security scanning
💻Code Generation
- Project scaffolding
- API generation
- Code analysis
- Template creation
📁File Operations
- Format conversion
- Archive management
- PDF processing
- Image manipulation
🌐Network & Web
- HTTP requests
- DNS operations
- Port scanning
- Website analysis
📊Data Processing
- JSON/YAML manipulation
- Text analysis
- Log processing
- Database operations
🛠️ Dynamic Tool Creation
Claude Desktop gets access to the most advanced Nexus feature - dynamic tool creation:
- On-demand Tools: Create custom tools for specific tasks
- Docker Isolation: Secure execution in isolated containers
- Resource Limits: Memory and CPU constraints for safety
- Code Validation: Automatic security checks
- Temporary Execution: Tools are created, used, and disposed
🚀 Usage Examples
Basic Tool Usage
🔐 Generate Secure Password
Prompt: "Generate a 16-character password with symbols"
Tool Used: password_generate
🧮 Complex Calculations
Prompt: "Calculate the compound interest for $1000 at 5% for 10 years"
Tool Used: financial_calculator
Advanced Examples
🛠️ Dynamic Tool Creation Example
Prompt:
"I need to parse a custom log format that looks like this:
'[2024-01-15 10:30:45] ERROR: Connection failed to 192.168.1.100:8080'
Can you create a tool to extract the timestamp, level, and IP address from such logs?"
Expected Behavior:
- Claude analyzes the requirement
- Uses
create_and_run_toolto create a custom parser - Tests the tool with the provided example
- Returns the parsed data (timestamp, level, IP)
Workflow Examples
📊 Data Analysis Workflow
- Upload CSV data
- Clean and validate data
- Perform statistical analysis
- Generate visualizations
- Export results
🔒 Security Assessment
- Scan network ports
- Check SSL certificates
- Validate security headers
- Generate security report
- Recommend improvements
🔍 Troubleshooting
Common Issues
🚫 No Tools Available
Symptoms: Claude says it doesn't have access to tools
Solutions:
- Check the configuration file path is correct
- Verify the Python path is absolute
- Restart Claude Desktop completely
- Check for JSON syntax errors in config
⚠️ Connection Errors
Symptoms: Tools fail to execute or timeout
Solutions:
- Ensure Python dependencies are installed
- Check Python virtual environment activation
- Verify file permissions on Nexus directory
- Test server manually with
python client.py
Debug Steps
- Verify Configuration:
# Check config file exists and is valid JSON
cat ~/.config/Claude/claude_desktop_config.json | python -m json.tool
- Test Server Manually:
cd /path/to/nexus-mcp-server
source .venv/bin/activate
python multi_server.py
# In another terminal
python client.py system_overview
- Check Logs:
Enable debug logging by setting LOG_LEVEL to DEBUG in the configuration:
{
"mcpServers": {
"nexus": {
"env": {
"LOG_LEVEL": "DEBUG"
}
}
}
}
⚡ Performance & Optimization
Resource Usage
Nexus is optimized for Claude Desktop usage:
- Memory Usage: ~50-100MB baseline, scales with active tools
- CPU Usage: Minimal when idle, scales with tool complexity
- Storage: ~100MB for base installation, additional for dynamic tools
- Network: Only for tools that require internet access
Optimization Tips
🎯 Tool Selection
Customize which tools are loaded to reduce memory usage
"env": {
"ENABLED_TOOLS": "essential,math,security"
}
🐳 Docker Optimization
Configure Docker for dynamic tools
"env": {
"DOCKER_MEMORY_LIMIT": "128m",
"DOCKER_CPU_LIMIT": "0.5"
}
🎯 Next Steps
📚 Explore All Tools
Browse the complete reference of 500+ available tools
Complete Tools Reference →