🤖 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.

🎯 Full Feature Access: Claude Desktop gets unrestricted access to all Nexus capabilities, including the advanced dynamic tool creation system with Docker isolation.

📋 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"
      }
    }
  }
}
⚠️ Critical: Replace /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

  1. Completely quit Claude Desktop
  2. Wait 5 seconds
  3. Restart the application
  4. 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
25+ Tools

🔒Security & Cryptography

  • Password generation
  • Encryption/decryption
  • Hash generation
  • Network security scanning
40+ Tools

💻Code Generation

  • Project scaffolding
  • API generation
  • Code analysis
  • Template creation
35+ Tools

📁File Operations

  • Format conversion
  • Archive management
  • PDF processing
  • Image manipulation
50+ Tools

🌐Network & Web

  • HTTP requests
  • DNS operations
  • Port scanning
  • Website analysis
30+ Tools

📊Data Processing

  • JSON/YAML manipulation
  • Text analysis
  • Log processing
  • Database operations
45+ Tools

🛠️ 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:

  1. Claude analyzes the requirement
  2. Uses create_and_run_tool to create a custom parser
  3. Tests the tool with the provided example
  4. Returns the parsed data (timestamp, level, IP)

Workflow Examples

📊 Data Analysis Workflow

  1. Upload CSV data
  2. Clean and validate data
  3. Perform statistical analysis
  4. Generate visualizations
  5. Export results

🔒 Security Assessment

  1. Scan network ports
  2. Check SSL certificates
  3. Validate security headers
  4. Generate security report
  5. 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

  1. Verify Configuration:
# Check config file exists and is valid JSON
cat ~/.config/Claude/claude_desktop_config.json | python -m json.tool
  1. 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
  1. 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:

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 →

🛠️ Dynamic Tools

Learn about creating custom tools on-demand

Dynamic Tools Guide →

💡 Examples

See practical examples and use cases

Examples & Tutorials →

🚀 Deployment

Deploy Nexus in production environments

Deployment Guide →