MCP Server

Bring image processingto your AI assistant

Call theGlitch directly from Claude, Cursor, or any MCP-compatible AI assistant. Setup takes 30 seconds.

mcp.json
{
  "mcpServers": {
    "theglitch": {
      "url": "https://mcp.theglitch.app/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
What is MCP?

Gives your AI assistant direct tools

Model Context Protocol — an open standard for AI assistants to call external services. One config line.

Added to the tool belt

14 image processing tools appear in your assistant's tool belt — like native tools.

Called in conversation

"Remove the background of this product photo" — the AI handles the rest, calling the tool with the right params.

Your key stays safe

With a local client the key stays on your machine; with the claude.ai connector the request is relayed via Anthropic. Either way the key only ever reaches theGlitch.

Example conversations

Works in the chat flow

AD AGENCY
SE
Prepare 5 social media sizes for the client logo.
AI
5 sizes ready: Instagram square, story, LinkedIn banner, Twitter header, Facebook cover.
glitch_social_preset
E-COMMERCE
AK
Remove the background of this product photo and return as WebP.
AI
Done — background removed, returned as WebP
glitch_remove_bg
CREATOR
MK
Colorize this old black-and-white family photo, then upscale 4x.
AI
Ran two steps: colorize first, then 4x upscale.
glitch_colorize → glitch_upscale
CONTENT / BLOG
BY
Shrink these 40 site images for the web without visible quality loss.
AI
40 images compressed — 68% smaller on average, dimensions kept.
glitch_optimize
PHOTO STUDIO
FS
Add my studio watermark to the bottom right of the delivery folder, then resize to 2000px wide.
AI
Ran two steps: watermark first, then resize.
glitch_watermark → glitch_resize
REAL ESTATE
EM
Remove the dumpster from this listing photo.
AI
Object removed, the gap filled to match its surroundings.
glitch_remove_object
Setup

Connect in 30 seconds

Three ways in: add it to Claude by hand with no file to edit, connect with a config file, or run the connector package on your own machine. All 14 tools show up in your client either way.

NO CONFIG FILE

Add it to Claude by hand

For Claude Desktop and claude.ai you do not have to edit any file — you can add the connector from the interface. This is the fastest route.

  1. Open the connectors screen

    Settings → Connectors → Add custom connector.

  2. Paste the server address

    Enter this URL in the server address field.

    URLhttps://mcp.theglitch.app/mcp
  3. Add your key as a header

    Add a header in the advanced settings. You get your key from the dashboard.

    Headerx-api-key: YOUR_API_KEY
  4. Add — but do not press Connect

    Save it with the Add button. Do not press Connect: this connection never asks you to sign in, it authenticates with the key.

  5. Verify the tools

    Open the tools icon in the chat box and confirm the 14 tools are listed.

Recommended

Connect to the remote server

Nothing to install: you give your client the server address and the x-api-key header, and that is it. This is the route for clients that read their configuration from a file, like Cursor, VS Code and Claude Code.

  1. Get an API key

    Create a key in your dashboard — a unique string you pass to the server.

  2. Add the config

    Add the server address and the x-api-key header to your client's MCP configuration and replace YOUR_API_KEY with your own key. In Claude Desktop you add it from Settings → Connectors instead of editing a file.

    mcp.json
    {
      "mcpServers": {
        "theglitch": {
          "url": "https://mcp.theglitch.app/mcp",
          "headers": {
            "x-api-key": "YOUR_API_KEY"
          }
        }
      }
    }
    
    Claude Code./.mcp.json
    Cursor~/.cursor/mcp.json
    VS Code./.vscode/mcp.json
  3. Restart your client

    Fully quit and reopen it. The 14 tools appear in your assistant's tool list.

  4. Test it

    Try: "Remove the background of this image: https://theglitch.app/showcase/bg-before.webp"

Coming soon

Or run the package on your own machine

Run the connector package locally with npx; requests then go straight from your own machine to theGlitch.

The package is not published yet

The @theglitch/mcp-server package has not been published to npm yet, so the npx command below will fail for now. This only affects the local method — the remote server above works today. The configuration is ready and will work as-is the moment the package ships.

mcp.json
{
  "mcpServers": {
    "theglitch": {
      "command": "npx",
      "args": [
        "-y",
        "@theglitch/mcp-server"
      ],
      "env": {
        "THEGLITCH_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Tools

14 tools, one connection

One hand-built tool for each of the 14 transforms in the REST API; the tool list ships with the connector and is not generated from the endpoints.

glitch_resize
Resize images to any dimension.
glitch_format_convert
Convert between JPG, PNG and WebP.
glitch_effects
Brightness, contrast, saturation, blur.
glitch_watermark
Add a brand watermark.
glitch_optimize
Shrink file size for the web.
glitch_crop
Center-crop to a ratio or size.
glitch_social_preset
Social media presets.
glitch_image_info
Dimensions, format, metadata.
glitch_remove_bg
AI background removal.
glitch_upscale
AI 2x / 4x upscaling.
glitch_colorize
Colorize black-and-white photos.
glitch_face_restore
Face restoration.
glitch_photo_restore
Restore old photos.
glitch_remove_object
Erase unwanted objects.
FAQ

About MCP

Any MCP-compatible client: Claude Desktop, Cursor, Continue, Cline, Zed — and newly-added clients.
Yes. MCP calls share the same quota as the REST API. Free 500, Pro 75,000 — same regardless of channel.
No. The key only ever travels to reach theGlitch. With a local client (desktop app, command line, code editor) it lives in your configuration file and the request leaves straight from your machine. With a connector added through claude.ai the request is relayed via Anthropic infrastructure; the key still only goes to theGlitch and is never exposed to another service.
14 tools covering the transforms in the REST API. They are defined by hand: glitch_crop, for instance, calls the /resize endpoint with preset options. See the table above, or your assistant's tool list on first connection.
Yes. Give the assistant a list: "Resize these 20 images." It calls one by one and gathers the results.

Create an account, grab the key, integrate in 30 seconds.

No credit card. Start connecting from the Free plan.

Code copied