> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# MCP server

> Connect Claude Desktop, Cursor, and other MCP-aware AI clients to your Datum Cloud resources with the Datum MCP server.

The [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) lets AI
clients like Claude Desktop and Cursor talk to your Datum Cloud resources
directly, outside the terminal. This page covers the Datum MCP server. For the
hosted Datum Docs MCP server, see [Datum Docs MCP](https://www.datum.net/docs/agents/datum-mcp.md#datum-docs-mcp).

Where the [AI assistant](https://www.datum.net/docs/datumctl/ai/assistant.md) is the interactive,
terminal-first experience in `datumctl`, the Datum MCP server is the
bridge that gives a desktop AI assistant secure, standards-based access to your
organizations, projects, domains, proxies, DNS, and more.

> [!NOTE]
>
> The Datum MCP server is distributed as a separate `datum-mcp` binary, not as a
> `datumctl` subcommand. Installation, the full tool catalog, and one-click setup
> for clients such as Cursor live on the dedicated [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md) page
> and upstream in the [Datum MCP repository](https://github.com/datum-cloud/datum-mcp).

## When to use the MCP server

Reach for the MCP server when you want an AI client that lives outside your
terminal to work with Datum Cloud:

* **Claude Desktop** — chat with an assistant that can read and change your
  Datum resources.
* **Cursor** and other IDE-embedded assistants — bring Datum context into your
  editor while you build.
* **Claude Code** — install the `datum-cloud` plugin, which starts the server
  for you. See [Add it to your AI client](https://www.datum.net/docs/agents/datum-mcp.md#add-it-to-your-ai-client).
* Any other MCP-aware client. Datum MCP speaks the standard stdio transport,
  and can also serve streamable HTTP.

If you would rather stay in the terminal, `datumctl assistant` answers questions
in natural language without a separate MCP client — see the
[AI assistant](https://www.datum.net/docs/datumctl/ai/assistant.md) guide.

## What it exposes

The Datum MCP server gives connected clients tools to inspect and manage your
Datum Cloud resources. Clients can understand the current state of your
resources, suggest and implement changes, and help diagnose common
configuration issues. The catalog covers:

* Organizations, projects, and users
* Domains, load balancers (HTTP proxies, routes, and gateways), and traffic protection
* DNS zones and records
* gVPC networks and network services
* Compute workloads and Instances
* IP address management, IAM, billing, and services
* Activity search
* Any other Datum resource, through a generic escape hatch

For load balancers, networks, Compute, DNS, and activity, the server also
includes each service's own diagnostic tools, the same ones Datum's
[AI assistant](https://www.datum.net/docs/datumctl/ai/assistant.md) uses. To keep the tool list short, the
server loads some toolsets on demand during a session.

> [!NOTE]
>
> The tool catalog evolves with the server. See the [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md)
> page for the authoritative, up-to-date list and the exact operations each tool
> supports.

## Connecting a client

Most MCP clients launch the server over stdio. Add an entry like this to your
client's MCP configuration:

```json theme={null}
{
  "datum-mcp": {
    "command": "datum-mcp",
    "args": []
  }
}
```

**1. Install the Datum MCP server**

Follow the install instructions on the [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md) page. Binaries
are available for Linux, macOS, and Windows on x86 and arm64.

**2. Add the server to your client**

In Claude Code, install the `datum-cloud` plugin from the
`datum-cloud/claude-code-plugins` marketplace, which starts the server for
you. For other clients, point them at the `datum-mcp` binary using a stdio
configuration like the one above. Cursor users can use the one-click install
link on the [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md) page.

**3. Sign in on first use**

The first tool call triggers a browser-based sign-in (see below). Approve it,
and your client is connected.

## Authentication

On first use, the server runs a browser-based OAuth (PKCE) sign-in, then stores
credentials — including a refresh token — securely in the system keychain.
Subsequent calls reuse and refresh the token automatically, so you sign in once.
This is the same security model `datumctl` uses when you
[log in](https://www.datum.net/docs/datumctl/auth/logging-in.md): no static API keys.

To run Datum MCP without a browser, such as in CI or on a server, set
`DATUM_TOKEN` and `DATUM_API_HOSTNAME` instead. With a
[service account](https://www.datum.net/docs/datumctl/auth/service-accounts.md) token, the server works in
that service account's own project.

The server implements the latest
[MCP Authorization](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization)
specification and supports OAuth 2.1 (PKCE).

> [!WARNING]
>
> The MCP server acts on real Datum Cloud resources with your credentials.
> Connect it only to AI clients you trust, and review any changes an assistant
> proposes before approving them.

## Next steps

* [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md) — set up the Datum MCP server: install, one-click client setup,
  and the full tool catalog.
* [Datum Docs MCP](https://www.datum.net/docs/agents/datum-mcp.md#datum-docs-mcp) — give your AI client the docs as
  well, with no installation.
* [AI assistant](https://www.datum.net/docs/datumctl/ai/assistant.md) — prefer the terminal? Use `datumctl assistant`
  instead.
* [Logging in](https://www.datum.net/docs/datumctl/auth/logging-in.md) — review how Datum Cloud handles credentials before
  your first connection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.