eqixiacEquinix Infrastructure as Code

Run and connect the MCP server

Build the MCP server JAR, start it with your API client credentials, and register it in an MCP host such as Claude Desktop.

The MCP server is the runnable JAR equinix-sdk-java-4.1.0-mcp-server.jar. It is a Model Context Protocol server named equinix-sdk-java-intelligence. An MCP host starts it as a child process and exchanges JSON-RPC messages with it on stdin and stdout. The server has no network listener.

The tools run the design engines and reads of tickets, billing, Network Edge devices, and IBX SmartView data. No tool wraps a single REST endpoint. For the list, see Tool catalog.

Prerequisites#

  • Java 21 or later.
  • The client ID and client secret of an Equinix API client. See Authentication.
  • The server JAR, from a GitHub release or from a source build.
  • An MCP host. Read the security guidance before you connect the server to one.

Build and start the server#

The following commands create a credentials file, build the JAR, and start the server with the design and ibx toolsets:

Shell
printf 'EQUINIX_ACCESS_KEY=\nEQUINIX_SECRET_KEY=\n' > .env.local   # then fill in both values
./mvnw -q package -DskipTests
java -jar target/equinix-sdk-java-4.1.0-mcp-server.jar --toolsets design,ibx --env-file /path/to/.env.local

The server writes only JSON-RPC to stdout. It writes every diagnostic, including the startup line, to stderr.

If a credential is missing, the server exits with status 2. For every setting, see Settings.

Register the server in an MCP host#

For a host that reads an mcpServers map, add the following entry to the host's configuration file:

JSON
{
  "mcpServers": {
    "equinix": {
      "command": "java",
      "args": ["-jar", "/path/to/equinix-sdk-java-4.1.0-mcp-server.jar", "--env-file", "/path/to/.env.local"],
      "env": {
        "EQUINIX_MCP_TOOLSETS": "design,ibx"
      }
    }
  }
}

For another host, use the same command line: java -jar <jar> [--toolsets ...] [--env-file ...]. Put the other settings in the host's env block.

Register the server in Claude Desktop#

The repository has two scripts that register the server in claude_desktop_config.json:

  • On macOS and Linux, run ./connect-claude-desktop.sh.
  • On Windows, run .\connect-claude-desktop.ps1.

Close Claude Desktop before you run the script. The script refuses to run while Claude Desktop is running, because the application rewrites its configuration file on exit.

The script does the following:

  • It backs up the configuration file to claude_desktop_config.json.bak-<timestamp>.
  • It merges an equinix entry into the configuration file. If an entry exists, the script keeps its env, extra arguments, Java command, and other fields, and updates only the JAR path.
  • It writes no secret by default. The entry gets cwd set to the repository and --env-file <repo>/.env.local. The script removes credentials that an older script version embedded.
  • It copies the credentials into the env block only when you pass --embed-credentials (-EmbedCredentials in PowerShell).

Choose the toolsets#

By default, the server provides every toolset except mutate and capacity, and every default tool is read-only. To provide fewer tools, set --toolsets or EQUINIX_MCP_TOOLSETS. For the toolset IDs, see Toolsets.

Embed the server in a Java application#

You can host the server in your own Java process and add your own tools. The MCP Java SDK is an optional dependency of the library. Add io.modelcontextprotocol.sdk:mcp-core and mcp-json-jackson2, version 2.1.0, to your application.

The following example starts a server over stdio with two toolsets:

Java
import com.eqixiac.equinix.mcp.server.EquinixMcpServer;
import com.eqixiac.equinix.mcp.server.Toolset;

EquinixMcpServer server = EquinixMcpServer.builder()
    .session(eq)                                  // shares the session's token and connection pool
    .toolsets(Toolset.DESIGN, Toolset.IBX)
    .build();                                     // registers the tools and starts serving stdio

Runtime.getRuntime().addShutdownHook(new Thread(server::close));
MethodEffect
additionalTools(ToolRegistration...)Registers your tools through the same type that the built-in tools use.
openCapacity(client)Gives the capacity toolset the OpenCapacity client to use. See Get started with the OpenCapacity client.
stdio(in, out), transportProvider(...)Replace the transport.
EquinixMcpServer.catalog(toolsets)Lists the static catalog without starting a server.

Next steps#