MCP server
Moth DocsGuides
Moth's MCP server puts every Moth model inside AI apps that speak MCP, such as Claude Code, Cursor, VS Code and Windsurf, on one API key.
The server lives at https://api.runmoth.si/mcp. An app adds it by that address with one of your API keys, and every model call it makes is billed and logged like any other call on that key, with the key's cap and model list in force. The server itself costs nothing.
Add it to your app
Moth Console shows the command under Settings, ready to copy. Make a key under Keys first.

Claude Code adds it in one command. Put your key in MOTH_API_KEY first, or paste it in place.
claude mcp add --transport http moth https://api.runmoth.si/mcp \
--header "Authorization: Bearer $MOTH_API_KEY"
claude mcp list checks it. Moth shows as connected once the key is accepted.

Cursor reads ~/.cursor/mcp.json, and Windsurf and most other apps take the same shape in their MCP settings.
{
"mcpServers": {
"moth": {
"url": "https://api.runmoth.si/mcp",
"headers": { "Authorization": "Bearer moth_..." }
}
}
}VS Code reads .vscode/mcp.json in a project, with the server's type set to http.
{
"servers": {
"moth": {
"type": "http",
"url": "https://api.runmoth.si/mcp",
"headers": { "Authorization": "Bearer moth_..." }
}
}
}Apps that sign in with OAuth. Some apps add remote servers only through an OAuth sign-in, such as the Claude.ai and ChatGPT web apps. Moth's server takes an API key, so add it in an app that takes a server address with a header.
The tools
list_modelsLists the models the key can reach, with each one's maker, kind, Moth's price and the list priceask_modelSends a prompt to any chat model and returns the reply, the tokens and what it costgenerate_imageMakes a picture and returns it with a download link, or a job id if it takes longer than about a minute and a halfstart_videoStarts a video clip and returns its job id and the price heldstart_songStarts a song and returns its job id and the price heldcheck_jobReads a job's status, and once it is done, its download linksget_balanceReads the account's balance, the key's cap and what it has spent against itAsk for it in plain words in the app's chat, and name Moth so the app reaches for these tools. Asking Claude Code to get a second opinion from GPT 6.2 Sol through moth runs ask_model, and the reply comes back with what the call cost.

A tool that can't run, because the key is out of credit, at its cap or not allowed that model, answers with the same plain message the API gives, so the app's model can tell you what to do.
What it costs
Each model call costs that model's price on Moth, the same as calling the API, and the Console's Models page lists them. Pictures, clips and songs hold their price when they start and settle when they finish, as Images, video and music explains. Listing models, checking a job and reading the balance cost nothing.
Downloads
A finished picture, clip or song comes with a download link that works without your key for 24 hours, for that one file only. After that, check_job gives a fresh one.
Privacy
Each model call goes through the Mothpoint like any other, so the model's host sees Moth and never you. The app you add the server to is a different matter. It sees its own conversation, including what Moth's tools send back, under that app's own policy.