About Raywake
Raywake is an open-source TypeScript MCP server for searching and using AI image, video and audio models. It is for users of MCP clients who want model schemas, USD quotes and a user-approved generation flow.
Key features
- 01Search image, video and audio models
- 02Inspect model input schemas and prices
- 03Get USD quotes for exact inputs
- 04Generate after quote approval
- 05Check jobs and retrieve outputs
- 06Read USD balance and job history
Use cases
- 01Compare models and indicative starting prices
- 02Check a generation cost before submitting
- 03Track a generation job and retrieve results
- 04Review recent jobs and available balance
MCP support
Exposes tools for model discovery, schemas, quotes, generation, job tracking and account balances. The same tools are available through a hosted Streamable HTTP endpoint or a local stdio package.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.raywake.com/v1claude mcp add --transport http si-raywake https://mcp.raywake.com/v1{"mcpServers":{"si-raywake":{"type":"http","url":"https://mcp.raywake.com/v1"}}}Open in Cursor{"servers":{"si-raywake":{"type":"http","url":"https://mcp.raywake.com/v1"}}}Open in VS Code{"mcpServers":{"si-raywake":{"type":"http","url":"https://mcp.raywake.com/v1"}}}{"mcpServers":{"si-raywake":{"serverUrl":"https://mcp.raywake.com/v1"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMERaywake MCP
500+ AI image, video and audio models in Claude, ChatGPT, Cursor and any MCP client.
An open-source TypeScript MCP server for Raywake. Use the hosted connector at https://mcp.raywake.com/v1 with nothing to install, or run this package locally over stdio with npx (Node.js 20 or later).
Get an API key
Create a key at raywake.si/api-keys. Enable models:read, generate, jobs:read, and wallet:read for all tools. Add USD balance at raywake.si/billing when you want to generate. Browsing, quotes and job checks are free.
Replace YOUR_RAYWAKE_API_KEY in the configurations below. Keep your key private and keep configuration files containing it out of version control.
Claude Code
claude mcp add raywake -e RAYWAKE_API_KEY=YOUR_RAYWAKE_API_KEY -- npx -y @raywake/mcp
Cursor
Add to ~/.cursor/mcp.json (or your project's .cursor/mcp.json), then enable Raywake in MCP settings:
{
"mcpServers": {
"raywake": {
"command": "npx",
"args": ["-y", "@raywake/mcp"],
"env": { "RAYWAKE_API_KEY": "YOUR_RAYWAKE_API_KEY" }
}
}
}
Claude Desktop
Open Settings > Developer > Edit Config and add to claude_desktop_config.json. Restart Claude Desktop after saving.
{
"mcpServers": {
"raywake": {
"command": "npx",
"args": ["-y", "@raywake/mcp"],
"env": { "RAYWAKE_API_KEY": "YOUR_RAYWAKE_API_KEY" }
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json, then refresh MCP servers:
{
"mcpServers": {
"raywake": {
"command": "npx",
"args": ["-y", "@raywake/mcp"],
"env": { "RAYWAKE_API_KEY": "YOUR_RAYWAKE_API_KEY" }
}
}
}
VS Code
Add to .vscode/mcp.json. VS Code prompts for your key and stores the input securely:
{
"inputs": [
{
"type": "promptString",
"id": "raywake-api-key",
"description": "Raywake API key",
"password": true
}
],
"servers": {
"raywake": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@raywake/mcp"],
"env": { "RAYWAKE_API_KEY": "${input:raywake-api-key}" }
}
}
}
These JSON examples are complete minimal configurations. Merge the raywake entry into an existing configuration to retain your other servers. On Windows, if the client cannot start npx, use "command": "cmd" and "args": ["/c", "npx", "-y", "@raywake/mcp"].
Remote (no install)
Raywake also hosts the same tools over Streamable HTTP:
https://mcp.raywake.com/v1
- Claude.ai / Claude Desktop: Settings > Connectors > Add custom connector, paste the URL, then sign in with your Raywake account.
- ChatGPT: Settings > Connectors > Create (developer mode), paste the URL, then sign in with your Raywake account.
- Claude Code:
claude mcp add --transport http raywake https://mcp.raywake.com/v1, then run/mcpto sign in. To use an API key instead: add--header "Authorization: Bearer YOUR_RAYWAKE_API_KEY".
OAuth connections set a per-generation spending limit at sign-in and expire after 30 days; you can disconnect them at any time in Raywake settings.
Tools
| Tool | Cost | Purpose |
|---|---|---|
search_models | Free | Search by query, category, modality (image, video, audio) and page (starts at 1; 20 results per page) |
list_categories | Free | List available categories |
get_model | Free | Read the exact input schema and indicative starting price in USD |
quote | Free | Price an exact model and input; returns quote_id, price_usd, expires_at |
generate | Paid | Submit the approved exact model, input, quote_id; optional idempotency_key for recovery |
get_job | Free | Read job_id, outputs and status; optional wait_seconds from 0 to 45 |
list_jobs | Free | List account history; optional limit (1–500), offset, status |
get_account | Free | Read available, reserved and debt balances in USD |
get_playbook | Free | Read the short workflow and spending rules |
search_models maps query to the API's search, and page to limit/offset. Because the API has no modality parameter, modality matches category/tags locally before pagination. Some models may match multiple modalities. get_model preserves the gateway's openapi schema and derives a starting price from its retail price guide when necessary. Starting prices are per the returned unit, such as image or second; they are not a quote for a complete run. An unavailable starting price is returned as null.
Example prompts
- "Find image models for product photography and compare their starting prices in USD."
- "Show the schema for this model, prepare my input and get a quote. Ask me before spending anything."
- "Quote a short video using this public HTTPS image URL. Show me the price before generating."
- "I approve this quoted price and input. Generate it, then check the existing job until it finishes."
- "Show my recent jobs and retrieve the newest result."
- "What is my available USD balance?"
What costs money
Only generate can spend your Raywake balance. Search, schemas, quotes, wallet reads and job polling are free. The assistant must follow:
- Search for a model and read its schema with
get_model. - Call
quotewith the complete input. - Show you the USD price, expiry and whether it is a usage-based maximum reservation, and get your approval.
- Call
generatewith that exact model, input and quote ID. - Continue with
get_job; polling never starts another generation.
The quote's settles_on_usage flag indicates a maximum reservation: actual billed usage is charged and unused balance is returned. For an expired quote or changed input, obtain a new quote and approval. If balance is insufficient, top up.
Approval is a rule communicated to the assistant through descriptions and the built-in playbook; the server cannot independently verify a conversation's human approval. Your MCP client's confirmation settings should require approval for the paid generate tool. Quote ownership, expiry and exact input binding are enforced by Raywake's gateway, with additional matching checks for quotes known to this process.
Waiting and safe retries
generate waits for up to 45 seconds including submission, then returns the known job_id, latest status and its generated idempotency_key. If polling fails, it retains the job reference. Continue using get_job with wait_seconds up to 45. Terminal states are succeeded, failed, needs_review, submission_unknown, and needs_reconciliation. Review and reconciliation states require attention; do not submit a replacement run automatically.
Save the idempotency_key, including from an error result. If the submission response is lost, retry generate with the same key, model, input and quote ID. The gateway returns the existing job for an exact retry, including after quote expiry. Never use a new key to recover an uncertain submission. Within a running server, repeating the same generation request also reuses its saved key. After restarting, supply the saved key; the gateway remains the authority for recovery of quotes no longer in local memory. Keys and quote fingerprints are held only in memory. If the entire tool response and process are lost, use list_jobs to find the existing job before doing anything that may spend again.
Media inputs
There is no upload tool: media-asset upload is not available to API keys. Models that accept images, videos or audio by URL need publicly accessible HTTPS URLs in the fields specified by get_model. Host local files publicly first. Local paths, file://, private URLs and data: URLs cannot be used as uploaded media. Output links may be temporary; call get_job again to retrieve current links.
Configuration
| Environment variable | Required | Default |
|---|---|---|
RAYWAKE_API_KEY | Yes | None; sent as a Bearer token |
RAYWAKE_API_BASE | No | https://api.raywake.com |
The base override must use HTTPS, except HTTP on localhost for local mocks. It must not contain credentials, a query or a fragment. Only use an override you trust: it receives your API key. Redirects are rejected. The server reserves stdout for MCP and never logs the key or raw upstream error bodies.
Privacy
Prompts and inputs go to Raywake and the selected model provider to fulfil your request. Your MCP client also handles the conversation and tool results. Do not include secrets in model inputs. This local package does not add analytics or write prompts, keys, quotes or results to disk. Client logging and the services' retention policies apply separately.
Development
npm install
npm run build
npm test
npm run smoke
npm test builds the CLI, uses Vitest with a mocked fetch and dummy credentials, and checks real stdio tool discovery without API access. The separate npm run smoke SDK test starts its own HTTP server on 127.0.0.1 with a dummy key, launches the compiled CLI, lists all nine tools and exercises discovery, quote, generation and job retrieval. Neither command calls api.raywake.com. The HTTP smoke requires permission to bind a local port; restricted sandboxes may reject it with EPERM.
To connect an MCP client to this unpublished checkout, replace the npx configuration with "command": "node" and "args": ["/absolute/path/to/raywake-mcp/dist/index.js"]; keep the same environment configuration. For a terminal launch after building:
RAYWAKE_API_KEY=YOUR_RAYWAKE_API_KEY node dist/index.js
server.json is the metadata published to the official MCP Registry as si.raywake/mcp. Release and registry publication are separate manual steps. The npm package's mcpName matches si.raywake/mcp; version fields must stay in sync.
The small TypeScript/npm/stdio layout is inspired by Wiro-MCP (MIT). Raywake uses its own Bearer authentication, quote-before-generation workflow and gateway contract. No Wiro source code is copied.
License
MIT, copyright Raywake.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.