IBM Code Engine MCP Server
v1.4.2Deploy to IBM Code Engine from Cursor, Copilot, Claude & Cline.
Values you need
| Variable | What it is | |
|---|---|---|
IBMCLOUD_API_KEY | required secret | IBM Cloud API key used to authenticate and call Code Engine APIs |
IBMCLOUD_REGION | optional | Default IBM Cloud region (for example: us-south) |
CONTAINER_RUNTIME | optional | Optional container runtime override: docker or podman |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add code-engine-mcp-server -e 'IBMCLOUD_API_KEY=<IBMCLOUD_API_KEY>' -- npx -y code-engine-mcp-server@1.4.2Add to
claude_desktop_config.json{
"mcpServers": {
"code-engine-mcp-server": {
"args": [
"-y",
"code-engine-mcp-server@1.4.2"
],
"command": "npx",
"env": {
"IBMCLOUD_API_KEY": "<IBMCLOUD_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"code-engine-mcp-server": {
"args": [
"-y",
"code-engine-mcp-server@1.4.2"
],
"command": "npx",
"env": {
"IBMCLOUD_API_KEY": "<IBMCLOUD_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "IBMCLOUD_API_KEY",
"id": "ibmcloud-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"code-engine-mcp-server": {
"args": [
"-y",
"code-engine-mcp-server@1.4.2"
],
"command": "npx",
"env": {
"IBMCLOUD_API_KEY": "${input:ibmcloud-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.code-engine-mcp-server]
command = "npx"
args = ["-y", "code-engine-mcp-server@1.4.2"]
env = { "IBMCLOUD_API_KEY" = "<IBMCLOUD_API_KEY>" }For AI agents
- Ask the user for: IBMCLOUD_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: detect_container_runtime, build_container_image, push_container_image, list_local_images, test_container_locally, icr_list_namespaces, icr_list_images, icr_delete_image, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json