• AUTOMATION
  • AUDIT
  • SECURITY
  • HUMAN

How to manage Grafana Cloud API keys with your AI

Connect your AI to Grafana Cloud once. From then on, you can handle your entire credential lifecycle through a simple chat interface.

Ask AI about this page

Short answer

Can I manage my Grafana Cloud API keys with an AI agent?

Yes. Your agent uses specific tools to create new keys, list existing ones, or delete them when they are no longer needed. This gives you direct control over your security credentials through your chat client.

Key outcomes.

What you get from your AI.

Your agent handles the technical execution of key management.

AUTOMATION

Instant key generation

The AI creates new credentials on your command. You get immediate access without navigating complex menus.

AUDIT

Credential visibility

Your agent pulls a list of all active keys. You can quickly see what's currently running in your account.

SECURITY

Rapid revocation

If a key is compromised, tell your agent to delete it. The access is cut off immediately.

HUMAN

Manual control

The AI won't make changes on its own. You stay in charge of every creation and deletion.

The workflow

What your AI does when you request key changes.

The AI maps your natural language requests to specific Grafana Cloud actions.

  1. Inventory

    The AI checks your account to see which keys are currently active.

    list_api_keys
  2. Provisioning

    The AI generates a new credential based on your specific requirements.

    create_api_key
  3. Cleanup

    The AI identifies specific keys that need to be removed.

    list_api_keys
  4. Revocation

    The AI removes the requested key to secure your environment.

    delete_api_key

Try it

Copy these to start.

Use these prompts to trigger actions in your chat.

Starting points

Swap out the names in quotes for your actual Grafana Cloud key names.

Grafana Cloud Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_LvjiD1jE9as6pQ5dAghIOnkYpcH8krlIHc7kuaV6/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Grafana Cloud capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "grafana-cloud-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_LvjiD1jE9as6pQ5dAghIOnkYpcH8krlIHc7kuaV6/mcp"
    }
  }
}
Copy into chat04
  • List all my Grafana Cloud API keys.

  • Create a new Grafana Cloud API key for my production dashboard.

  • Delete the Grafana Cloud API key named 'dev-access-token'.

  • Show me all active keys in my Grafana Cloud account.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Grafana Cloud once, then ask.

Connect your account in one step. Your login details stay encrypted, and you can start managing keys immediately.

Connect Grafana Cloud to your AI

FAQ

How this task behaves.

  • 01

    Can the AI create service accounts?

    No. This MCP is limited to managing API keys.

  • 02

    Can the AI delete my entire Grafana account?

    No. The AI only has the ability to delete specific API keys.

  • 03

    Will the AI automatically rotate my keys?

    No. The AI only performs actions when you explicitly ask it to create or delete a key.

  • 04

    Can I see the secret value of a new key?

    The AI can create the key, but you must ensure you copy the secret value from the chat response immediately.

  • 05

    Does the AI need my password every time I ask it to list keys?

    No. Once you connect the MCP, your agent can perform these actions without you re-authenticating.

  • More questions about Grafana Cloud? The Connector page answers them. See everything the Grafana Cloud Connector can do

Connect Grafana Cloud to Claude, Cursor, ChatGPT & more