• ACCESS
  • CONTROL
  • SECURITY
  • HUMAN

How to provision API keys with your AI agent

Connect Tyk to your agent to manage access control through natural language. Once connected, your AI handles the key lifecycle for you.

Ask AI about this page

Short answer

How can I manage Tyk API keys using AI?

Your agent uses the Tyk MCP to create, update, or delete keys and session objects. You just tell your agent what you need, and it executes the specific API calls to your Tyk infrastructure. This gives you direct control over your security credentials without touching the Tyk dashboard.

Key management outcomes

Where your access control lands.

What happens when you give your agent a command.

ACCESS

Instant key creation

The AI generates new keys or organization-specific keys immediately. You get new credentials without manual configuration.

CONTROL

Update existing keys

Your agent modifies properties of active keys. You can change permissions or metadata on the fly.

SECURITY

Revoke access

The AI deletes keys or session objects when they are no longer needed. This keeps your infrastructure clean and secure.

HUMAN

Manual oversight

You decide when to trigger a deletion or a new key. The AI waits for your instruction before making any changes to your Tyk setup.

The workflow

What your AI does when a request arrives.

Your agent translates your intent into specific Tyk API actions.

  1. Identify the target

    The agent looks up the specific key or organization you want to modify to ensure it has the right context.

    get_key
  2. Generate credentials

    The AI creates a new API key or an organization-level key based on your requirements.

    create_keycreate_org_key
  3. Modify settings

    The agent updates the attributes of an existing key to change its scope or validity.

    update_key
  4. Remove access

    The AI wipes a key or a session object from your Tyk environment to stop traffic.

    delete_key

Try it

Copy these to start.

Use these prompts to begin managing your Tyk infrastructure.

Starting points

Swap out the bracketed info for your actual Tyk organization IDs or key names.

Tyk Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_iUTAgEKMTrwCH0qRtpYBwVdQZMGeBROVdfgdrMSA/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 — Tyk capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "tyk-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_iUTAgEKMTrwCH0qRtpYBwVdQZMGeBROVdfgdrMSA/mcp"
    }
  }
}
Copy into chat04
  • Create a new API key for the production gateway.

  • Update the existing key named 'mobile-app-client' to extend its expiration.

  • Delete the session object for user 12345.

  • Generate an organization key for the 'marketing-team' org.

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

Start here

Connect Tyk once, then ask.

Link your Tyk account to the MCP in one step. Your credentials stay encrypted and secure, and you can start managing keys immediately.

Connect Tyk to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete my entire Tyk gateway?

    No. The AI only has the ability to delete specific keys or session objects that you target.

  • 02

    Does the AI need my Tyk password?

    No. You connect the MCP once, and your credentials are handled securely through the Vinkius platform.

  • 03

    Can the AI create keys for any organization?

    Yes, as long as the credentials you provided have the permission to create organization keys.

  • 04

    Will the AI automatically rotate my keys?

    No. The AI only performs actions when you explicitly ask it to. It won't change anything on its own.

  • 05

    Can I see the key value after it is created?

    Yes, the agent can retrieve the details of a key after it has been generated.

  • More questions about Tyk? See everything the Tyk Connector can do

Connect Tyk to Claude, Cursor, ChatGPT & more