Skip to content

Configure Claude Code

Configure Endor with Claude Code to access instant development environments directly from your terminal. Claude Code supports both global and project-scoped MCP configurations.

Setup

Configure Endor in Claude Code

  1. 1

    Install Endor CLI on your system:

    Terminal window
    npm install -g @endorhq/cli

    For detailed instructions, see the Setup guide

  2. 2
    Install Claude Code
  3. 3

    Add MCP server using the command line:

    Terminal window
    claude mcp add endor -- endor mcp

    Use the --allow-net flag if you want to grant access to public networks. More information on Networking.

    Terminal window
    claude mcp add endor -- endor mcp --allow-net
  4. 4

    For project-scoped configuration, create .mcp.json in your project root:

    {
    "mcpServers": {
    "endor": {
    "command": "endor",
    "args": ["mcp"],
    "env": {}
    }
    }
    }
  5. 5
    Check MCP server status with /mcp command in Claude Code

Security

For security, Claude Code will prompt for approval before using project-scoped servers from .mcp.json files. This ensures you maintain control over which MCP servers can access your project.

Usage

Once configured, you can ask Claude Code to:

  • Start database services for your development work
  • Create isolated testing environments
  • Manage services without complex local configuration

Use natural language like “start a PostgreSQL database for this project” or “spin up a Redis instance for caching tests.”