What is MCP (Model Context Protocol), and how can an AI agent use it to manage cloud?

MCP (Model Context Protocol) is an open standard that lets an AI agent discover and call tools offered by an outside service in one consistent way. For cloud work, an MCP server offers actions such as listing machines, creating one or deploying an app. The agent calls them with a token you issue, so it can act only within the permissions that token carries.

Published

What problem does MCP solve?

A language model on its own can only produce text. To do real work, such as checking a calendar, querying a database or starting a server, it needs tools, and someone has to connect each tool to each agent. Before MCP, every pairing of agent and service needed its own integration.

MCP standardises that connection. A service describes its tools once, in a format any MCP-capable agent understands. The agent can then list the tools, read what each one does and what inputs it takes, and call them. Anthropic published the protocol openly in 2024, and many agents and developer tools now support it.

How does MCP work?

There are three roles:

  • The host: the application the person uses, such as a chat app, an IDE or a coding agent.
  • The client: the part of the host that speaks MCP to one server.
  • The server: the service that offers tools, and sometimes resources and prompts.

A server can run on the same computer as the agent, or remotely over HTTP. Remote servers commonly use the streamable HTTP transport and identify the caller with a token in a request header. Each tool call is a structured request with named inputs, and the server returns a structured result or an error.

The model decides which tool to call and with what inputs. The server decides whether the call is allowed. That split is what makes MCP useful for sensitive systems: the agent’s judgement is checked by rules it cannot change.

What does an agent do with a cloud MCP server?

Take a plain request: “Deploy this container image as an app and give me the link.” With a cloud MCP server, the agent might:

  1. Call a tool that lists the connected cloud accounts and picks one in the right region.
  2. Create the app, then check the deploy with a dry run, which validates the request and changes nothing.
  3. Start the deploy, which returns an operation.
  4. Wait on the operation until it is done or failed.
  5. Report the result: the app’s address, or the error and what to do about it.

The person sees a short conversation. Behind it, each step was an ordinary authenticated API call.

Why not give the agent cloud credentials directly?

You could hand an agent a cloud provider’s key and let it run the provider’s command line. It works, but:

  • The key usually carries more permission than the task needs.
  • The agent must handle each cloud’s tools, names and errors separately.
  • The key can end up in logs, prompts or files.
  • What the agent did is mixed with everything else in the cloud’s logs.

An MCP server in front of the cloud lets you give the agent a narrow token instead of a cloud key, and keeps one record of its actions.

What makes a cloud MCP server safe to use?

  • Scoped tokens: read-only, or able to create but not delete, with an expiry.
  • No access to credentials: no tool should return a cloud key or secret.
  • Dry runs: a way to check a change before making it.
  • Idempotency keys: a retried call should never create a second machine.
  • Tracked operations: long changes return something the agent can wait on.
  • Clear errors: a code and a hint the agent can act on.
  • An audit log: every action, tied to the token and the person who issued it.

How does Mayadyn’s MCP endpoint work?

Mayadyn’s MCP endpoint is https://console.mayadyn.com/mcp. It uses streamable HTTP and accepts a Mayadyn API token as a bearer token in the Authorization header. In Claude Code, for example:

claude mcp add --transport http mayadyn https://console.mayadyn.com/mcp --header "Authorization: Bearer myd_..."

The tools cover orientation (whoami, list_catalog, list_connections), machines (list_resources, create_vm, start_vm, stop_vm, delete_vm), apps (create_app, deploy_app, rollback_app, app_logs) and operations (wait_operation). Every call is an ordinary API call made with the agent’s token, so scopes, dry runs, idempotency and the audit log apply to the agent exactly as they do to people. Mayadyn works with Oracle Cloud and Google Cloud today, and AWS and Microsoft Azure are coming soon.

The full tool list and scopes are on the API and MCP page.

Questions people ask

Who created MCP?

Anthropic published MCP as an open protocol in 2024. It is now supported by many AI agents and developer tools, not only Anthropic's.

Is an MCP server the same as an API?

Not quite. An MCP server usually sits on top of an API and describes its actions as tools an agent can discover and call. The API still enforces the permissions.

Which agents can use Mayadyn's MCP endpoint?

Any agent or MCP client that supports streamable HTTP and a custom authorization header, for example Claude. See the AI agents guide.

Can the agent read my cloud keys through MCP?

Not with Mayadyn. No Mayadyn tool returns a credential, and agents cannot connect cloud accounts or manage tokens.

Connect your first cloud account in minutes

Create a workspace, connect Oracle Cloud or Google Cloud without handing over a key, and run your first machine. You pay only for what you use.