Datagram MCP server

Give your AI app Datagram as a tool: hand tasks to private open models, make pictures, and run DNS, whois, ping, traceroute and TLS checks from our datacenter, in Claude Code, Cursor, VS Code, Claude Desktop and any MCP client.

Works with Datagram AI Certified Datagram Plug-in

All guides · API quickstart · Last checked: MCP server version 1.0, November 2026: the MCP protocol (initialize, tools/list, tools/call) tested against the live server; client setup follows each app's documentation

  1. 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
  2. 2. Make an API keyIn your account, open AI API and press Create key. Keys start with dgk_. Keep yours secret.
  3. 3. Follow the steps belowCopy each block, paste your key where it says dgk_your_key_here.

The settings

Server URL
https://api.datagram.net/v1/mcp (Streamable HTTP)
Header
Authorization: Bearer dgk_…, a key from your account under AI API (new accounts get $5 of free credit)

The tools

ToolWhat it doesCost
ask_modelHands a prompt to an open model on our hardware (default Gemma 4 26B) and returns the answertokens
list_modelsModels your key can use, with prices and which read picturesfree
generate_imageMakes a picture from a description (FLUX.2 Klein, Z-Image Turbo, Qwen-Image)$0.01–$0.018
dns_lookup, rdap_lookupDNS records and whois (RDAP) for domains, IPs and AS numbersfree
ping, tracerouteReachability and network path from our datacenterfree
tls_certificateCertificate a server presents: issuer, expiry, trustfree
read_pageA web page's text and links, fetched from our networkfree
ai_creditYour credit balance and this key's use this monthfree

Claude Code

claude mcp add --transport http datagram https://api.datagram.net/v1/mcp \
  --header "Authorization: Bearer $DATAGRAM_API_KEY"

Then ask, for example, "use Datagram to check the TLS certificate of example.com" or "ask a Datagram model to summarize this file". /mcp inside Claude Code shows the server and its tools.

Cursor

In ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "datagram": {
      "url": "https://api.datagram.net/v1/mcp",
      "headers": { "Authorization": "Bearer dgk_your_key" }
    }
  }
}

VS Code (GitHub Copilot agent mode)

In .vscode/mcp.json; VS Code asks for the key once and keeps it in its secret storage:

{
  "inputs": [{ "type": "promptString", "id": "datagram-key", "description": "Datagram API key", "password": true }],
  "servers": {
    "datagram": {
      "type": "http",
      "url": "https://api.datagram.net/v1/mcp",
      "headers": { "Authorization": "Bearer ${input:datagram-key}" }
    }
  }
}

Claude Desktop

Claude Desktop's config file connects to remote servers through the small mcp-remote helper (needs Node.js). Settings → Developer → Edit Config, then add:

{
  "mcpServers": {
    "datagram": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.datagram.net/v1/mcp", "--header", "Authorization:${DATAGRAM_AUTH}"],
      "env": { "DATAGRAM_AUTH": "Bearer dgk_your_key" }
    }
  }
}

Restart Claude Desktop afterwards. (The header is passed through env because of a quirk with spaces in arguments on Windows.)

Other MCP clients

Any client that supports remote (Streamable HTTP) servers with a custom header works: give it the URL and the Authorization header above. The server answers plain JSON and keeps no session.

Privacy

Requests run on our own servers in our datacenter. What the tools are given and return is never stored or used for training; we keep only token counts and how many times each tool was used.

If something goes wrong

The client says it can't connect, or asks to sign in (OAuth)

The Authorization header is missing or wrong. Check it is exactly Bearer dgk_… (with the space). We use API keys, not a sign-in page.

ask_model says a model "is not enabled for this key"

The key is limited to certain models. Use one from list_models, or change the key's models in your account.

"Your Datagram AI credit has run out"

Add credit in your account under AI API. Credit never expires. The network tools keep working.

Questions

What is MCP?

The Model Context Protocol is a standard way for AI apps to use outside tools. Add our server once and the AI in your app can call Datagram's tools when they help.

Why would Claude or Cursor ask another model?

To keep something private (the text goes only to our hardware, never to a public AI service), to do bulk or routine work on a cheaper model, or for a second opinion.

What does it cost?

The network tools are free. ask_model is paid by tokens like any API request, and pictures at the normal picture price, from your Datagram credit. ai_credit shows your balance.

Is anything stored?

No. What the tools are given and return passes through and is never written to a log or database or used for training. We keep only token counts and tool counts.

Create an account Get an API key More guides →