# Visuatelier MCP

> Connect Claude, ChatGPT, Cursor or any Streamable HTTP client to the same generation ledger as the studio. Sign in with OAuth 2.1, or paste a Bearer API key.

Canonical: https://visuatelier.com/en/mcp

## Endpoint

Streamable HTTP MCP lives at https://visuatelier.com/mcp on the same Worker as the site. Browser visits to that URL, or any GET that prefers HTML, open this page. Protocol requests use POST JSON-RPC with Accept: application/json, text/event-stream.

The protocol is off until MCP_ENABLED is true. REST generation at /api/v1 is a separate flag (API_V1_ENABLED). OpenAPI: /openapi.json. REST docs: /en/docs/api.

## Sign in (OAuth 2.1)

Claude, ChatGPT and other connectors can sign in without pasting a key. Add the MCP URL https://visuatelier.com/mcp. A 401 from /mcp includes WWW-Authenticate with the protected-resource metadata. The authorization server lives on the same Worker: /.well-known/oauth-authorization-server, Dynamic Client Registration at /oauth/register (public clients, PKCE S256), /oauth/authorize (your existing Visuatelier session and a consent page), /oauth/token and /oauth/revoke.

Consent shows the client name, the 2,000-credit daily cap (editable) and the 500-credit confirmation threshold. Access tokens are vis_at_…, refresh tokens vis_rt_…, stored only as hashes. Revoke the OAuth connection from Account. The protocol is off until MCP_ENABLED is true.

## Create a key

Sign in, confirm you are 18 or older, then open Account. Name a key and set a daily credit cap (default 2,000; 0 is read-only). The secret is shown once, prefix vis_live_, stored only as a hash.

Send Authorization: Bearer vis_live_… on every MCP request, including initialize. Revoke the key from Account at any time. Keys and OAuth grants share the same caps, ledger, rate limits and moderation.

## Credits and tools

Tools: list_models, recommend_model (goal → model + reason + quote), quote, generate, get_job, upscale, list_library, get_balance. generate and upscale reuse the studio path: same ledger, daily cap, rate limits and moderation. There is no second charging path.

Jobs above the key's confirm_over (default 500 credits) return confirmation_required until you call generate or upscale with confirm=true. Structured results include media URLs, width, height, seed and credits charged. 1,000 free credits each UTC day on FLUX Schnell reset and do not stack.

## Claude

Claude.ai and Claude Desktop accept a remote MCP connector. Add a custom connector with URL https://visuatelier.com/mcp and sign in with your Visuatelier account (OAuth). On claude.ai: Settings → Connectors. A Bearer vis_live_ key still works if you prefer not to use OAuth. In Claude Desktop, paste the JSON below into claude_desktop_config.json (or the equivalent remote-MCP field for your build).

```json
{
  "mcpServers": {
    "visuatelier": {
      "url": "https://visuatelier.com/mcp",
      "headers": {
        "Authorization": "Bearer vis_live_YOUR_KEY"
      }
    }
  }
}
```

## ChatGPT

ChatGPT custom connectors can call a remote MCP server over Streamable HTTP. In ChatGPT: Settings → Connectors (or Custom GPT → Actions / MCP) → add server URL https://visuatelier.com/mcp and sign in with OAuth (no key paste). Enable the Visuatelier tools for that GPT or project. A Bearer vis_live_ key still works as an alternative.

## Cursor

Add a remote MCP server in Cursor Settings → MCP, or write .cursor/mcp.json in the project. Cursor speaks Streamable HTTP to the URL below. Restart MCP after saving the key.

```json
{
  "mcpServers": {
    "visuatelier": {
      "url": "https://visuatelier.com/mcp",
      "headers": {
        "Authorization": "Bearer vis_live_YOUR_KEY"
      }
    }
  }
}
```

## Generic clients

Any client that implements MCP Streamable HTTP (2025-03-26 or 2025-06-18) can POST JSON-RPC to https://visuatelier.com/mcp. Authenticate with OAuth 2.1 (official SDK: OAuthClientProvider + auth + finishAuth) or Authorization: Bearer vis_live_…. Send Content-Type: application/json and Accept: application/json, text/event-stream. The server is stateless (no Mcp-Session-Id required) and answers JSON when the client accepts it.

Initialize, then tools/list and tools/call. Official TypeScript SDK: Client + StreamableHTTPClientTransport. llms.txt: https://visuatelier.com/llms.txt.

## Limits

30 requests per minute per key, 60 generate or upscale jobs per hour per key, 120 requests per minute per IP. Plan concurrency still applies. Failed or blocked jobs are refunded to both the ledger and the daily cap.
