# Tiltmeter MCP server

> An early-warning system that detects third-party API schema changes and automatically generates pull requests to fix broken code.

- Repository: https://github.com/tiltmeter-dev/tiltmeter
- Page: https://hostedmcp.org/servers/tiltmeter-dev/tiltmeter
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.5.1

## Install

### Claude Code

```sh
claude mcp add --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' tiltmeter -- uvx tiltmeter
```

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

```json
{
  "mcpServers": {
    "tiltmeter": {
      "command": "uvx",
      "args": [
        "tiltmeter"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "tiltmeter": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tiltmeter"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"tiltmeter","type":"stdio","command":"uvx","args":["tiltmeter"],"env":{"ANTHROPIC_API_KEY":"<YOUR_ANTHROPIC_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "tiltmeter": {
      "command": "uvx",
      "args": [
        "tiltmeter"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add tiltmeter --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' -- uvx tiltmeter
```

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

```toml
[mcp_servers.tiltmeter]
command = "uvx"
args = ["tiltmeter"]

[mcp_servers.tiltmeter.env]
ANTHROPIC_API_KEY = "<YOUR_ANTHROPIC_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' tiltmeter uvx -- tiltmeter
```

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

```json
{
  "mcpServers": {
    "tiltmeter": {
      "command": "uvx",
      "args": [
        "tiltmeter"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ANTHROPIC_API_KEY` | no | yes | Only needed for explanations written by Claude. |
| `TILTMETER_CONFIG` | no | no | Path to tiltmeter.yaml. Defaults to tiltmeter.yaml in the working directory. |

## FAQ

### How does Tiltmeter detect API changes?

It learns the shape of JSON responses from real traffic and notices when vendors rename fields, change types, or send null values.

### Can Tiltmeter fix the code automatically?

Yes, the `tiltmeter fix` command uses an agent to adapt the code reading the API and opens a pull request with the changes.

### Does Tiltmeter store my sensitive data?

No, it uses a local SQLite file, credentials are expanded at request time and never stored, and response bodies are not stored or sent to the LLM.

### How can I use this with my AI agents?

You can add the Tiltmeter MCP server to clients like Claude Code or Cursor, allowing agents to call tools like `has_drifted` or `get_schema` before acting.
