MCP server
The Acasia MCP server gives your AI agent tools to request and manage GPU rentals on Acasia. The tools work through the Acasia API.
The address
https://mcp.acasia.com/mcpThe server speaks MCP over streamable HTTP. For adding it to an agent, see Connect your agent.
How your agent signs in
Your agent sends its credential to the server as Authorization: Bearer. The credential is one of these:
- An Acasia API key, which starts with
aca_. - A sign-in token (a JWT) for your Acasia account.
The MCP server checks the credential header’s format and normalizes it before forwarding it. The Acasia API validates the token. When a call with valid arguments reaches a tool that needs a credential and the server has none to send, the tool returns unauthenticated without calling the API. Don’t put the credential in the address.
What your agent can do
These are the tools the server can offer. There are no tools for cards, auto top-up, limits or reserved clusters.
Rentals and GPUs
list_rentals- Lists your organization’s GPU rentals, with their hourly rates, charge information and any SSH details the Acasia API reports.
get_rental- Shows one rental’s status, hourly rate and charge information, plus start and end times and SSH details when the Acasia API reports them.
rent_gpu- Requests GPUs on a machine, with CPU, RAM, storage and SSH keys for the rental. The result is a receipt for the queued request.
stop_gpu- Requests a stop by rental ID. The result is a receipt for the queued stop.
get_gpu- Shows one GPU’s state, type, location and rental, plus its stop time and keep-on deadline when set.
list_gpu_events- Lists the history of one GPU, such as started, stopped and kept on, one page at a time.
start_gpu- Asks to start a stopped or failed GPU your organization holds. The GPU then shows as starting.
cancel_gpu_start- Cancels a GPU start that has not finished, if it can still be cancelled.
keep_gpu_on- Sets a running GPU’s keep-on deadline from now, replacing any existing deadline, even a later one. The Acasia API accepts whole minutes from 15 to 10,080.
Who you are
whoami- Shows what the Acasia API knows about the credential: its subject (for an API key, the key’s id), the organization, how it signed in and its permissions.
Health
These two send no credential.
api_health- Says whether the Acasia API is up.
api_ready- Says whether the Acasia API can reach its database.
SSH keys and status
Off by default; they appear in your agent’s tool list only when they are turned on.
list_ssh_keys· off by default- Lists your organization’s SSH public keys, with each key’s id, name and fingerprint.
add_ssh_key· off by default- Adds an SSH public key to your organization, so it can go on rented GPUs.
delete_ssh_key· off by default- Deletes one of your organization’s SSH keys.
get_status· off by default- Shows Acasia Cloud’s public status: each service, open incidents and recent history. It sends no credential.
To connect to a rental, call get_rental or list_rentals and check the rental’s ssh field for its host, port and user. A running rental can lack ssh while its SSH keys are pending or have failed. Older rentals can have ssh without ssh_ready or ssh_keys_state.
Who decides
The Acasia API checks permissions for protected calls. When a new rental is requested with an API key that belongs to an agent, the Acasia API can also check that agent’s daily limit. The server keeps no usage limits of its own. When the API refuses a call, the tool returns the refusal and does not retry.
A refusal comes back as an error with a code and a message, and a request_id when one is available. MCP forwards usable error codes from the Acasia API and falls back to a code based on the HTTP status.
unauthenticated· HTTP 401- The Acasia API could not authenticate the request.
permission_denied· HTTP 403- The Acasia API refused the call, for example because the credential lacks a permission it needs.
agent_limit_approval_required· HTTP 402- This rental start would take the agent past its daily limit and needs approval from an owner or admin. After approval, retry rent_gpu with the same idempotency_key and inputs.
agent_limit_denied· HTTP 403- The Acasia API refused this rental start for the agent.
request_id_conflict· HTTP 409- The rental associated with this idempotency_key is already claimed by another agent in your organization.
limit_exceeded· HTTP 429- The Acasia API returned a fair-use limit response without a usable error code.
If MCP can use the API’s retry time and it is no more than 7 days ahead, the error says when to try again. A time at or before now appears as “Try again now.”
Retrying rent_gpu
Choose an idempotency_key (1 to 128 characters from A-Z a-z 0-9 _ -) before the first rent_gpu call and keep it. After any ambiguous outcome — a timeout, a lost reply, or an unexpected error such as a 5xx after the request was sent — retry rent_gpu with the same key, the same inputs and the same organization. A different key, including one generated when you omit the key, requests a different rental. Use a new key only when you intend to start another rental.
If a retry returns agent_limit_denied, agent_limit_approval_required or request_id_conflict, an earlier attempt with the same key may already have been accepted. list_rentals shows up to 100 recent rentals and does not include the idempotency key, so an empty or incomplete list cannot prove the first request failed. If you no longer have the key, stop and check existing rentals before starting another.
More on agents
- Connect your agent · Adding the server to your agent.
- API keys · Managing API keys. The keys the Acasia API accepts start with aca_.