SensorForge Optimizer

v0.1.0
io.github.sidupreti/sensorforge-mcp Checked 23 hours ago Published 8 days ago

Shrink trained models to fit edge devices with the hosted SensorForge Optimizer.

Values you need

VariableWhat it is
SENSORFORGE_API_KEYrequired secret Your SensorForge API key (sfk_...), from https://sensorforge.dev/optimize/app (API keys).
SENSORFORGE_URLoptional The service's address. Default: https://sensorforge.dev/optimize

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add sensorforge-mcp -e 'SENSORFORGE_API_KEY=<SENSORFORGE_API_KEY>' -- uvx sensorforge-mcp==0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "sensorforge-mcp": {
      "args": [
        "sensorforge-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SENSORFORGE_API_KEY": "<SENSORFORGE_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "sensorforge-mcp": {
      "args": [
        "sensorforge-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SENSORFORGE_API_KEY": "<SENSORFORGE_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SENSORFORGE_API_KEY",
      "id": "sensorforge-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "sensorforge-mcp": {
      "args": [
        "sensorforge-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SENSORFORGE_API_KEY": "${input:sensorforge-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.sensorforge-mcp]
command = "uvx"
args = ["sensorforge-mcp==0.1.0"]
env = { "SENSORFORGE_API_KEY" = "<SENSORFORGE_API_KEY>" }

For AI agents

  1. Ask the user for: SENSORFORGE_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_chips, check_fit, check_data, lossless, optimize, run_status, wait_for_run, get_report, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json