# Semesh MCP server

> Enables AI agents to discover service units and deploy, manage, and monetize full-stack applications including databases and usage billing.

- Repository: https://github.com/StructureIntelligence/settlemesh
- Page: https://hostedmcp.org/servers/structureintelligence/settlemesh
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.1.92

## Install

### Claude Code

```sh
claude mcp add --env 'SETTLE_API_KEY=<YOUR_SETTLE_API_KEY>' settlemesh -- npx -y settlemesh
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "settlemesh": {
      "command": "npx",
      "args": [
        "-y",
        "settlemesh"
      ],
      "env": {
        "SETTLE_API_KEY": "<YOUR_SETTLE_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "settlemesh": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "settlemesh"
      ],
      "env": {
        "SETTLE_API_KEY": "<YOUR_SETTLE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"settlemesh","type":"stdio","command":"npx","args":["-y","settlemesh"],"env":{"SETTLE_API_KEY":"<YOUR_SETTLE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "settlemesh": {
      "command": "npx",
      "args": [
        "-y",
        "settlemesh"
      ],
      "env": {
        "SETTLE_API_KEY": "<YOUR_SETTLE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add settlemesh --env 'SETTLE_API_KEY=<YOUR_SETTLE_API_KEY>' -- npx -y settlemesh
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.settlemesh]
command = "npx"
args = ["-y", "settlemesh"]

[mcp_servers.settlemesh.env]
SETTLE_API_KEY = "<YOUR_SETTLE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'SETTLE_API_KEY=<YOUR_SETTLE_API_KEY>' settlemesh npx -- -y settlemesh
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "settlemesh": {
      "command": "npx",
      "args": [
        "-y",
        "settlemesh"
      ],
      "env": {
        "SETTLE_API_KEY": "<YOUR_SETTLE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SETTLE_API_KEY` | no | yes | SettleMesh API key (sk-settle-...). Optional if you have run `settlemesh login` and a CLI session is stored. Never written to the protocol stream or logs. |

## FAQ

### How do I use Semesh with Claude Code?

You can add it using the command: claude mcp add semesh --env SEMESH_API_KEY=YOUR_API_KEY -- npx -y semesh mcp, or by running semesh login first.

### Can I deploy apps right now?

Currently, production deployment authorization is unavailable; the app_deployments.create Platform Action is disabled and source deploys will fail.

### What is the command to run the MCP server?

The current MCP command is npx -y semesh mcp.

### Is the deployment process manual?

No, the target policy is automatic publication after mechanical checks pass, with no default human approval queue.
