# Tyk MCP for AI Agents AI Agent Connect

> Tyk MCP lets you manage your API gateway and dashboard through natural language. Create API keys, set up security policies, and list definitions without jumping between tabs. It handles the heavy lifting of gateway configuration so you can focus on shipping code.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_iUTAgEKMTrwCH0qRtpYBwVdQZMGeBROVdfgdrMSA/ai-agent-connect
- **Tags:** api-gateway, api-management, security-policies, rate-limiting, key-management

## Description

Managing an API gateway usually feels like a chore of constant tab switching. You have to jump into a dashboard to rotate keys, check rate limits, or see if a policy actually applied. This Connector changes that by bringing those actions directly into your AI client. Instead of hunting for the right button, you just tell your agent what needs to happen. If you need a new session object for a client, it handles the creation. If a configuration change isn't sticking, you can trigger a hot reload immediately. It's a way to keep your API infrastructure moving as fast as your development cycle. You can find this in the Vinkius catalog to connect your Tyk instance to your favorite workspace. It handles the tedious parts of backend management like auditing policies or bulk-checking keys so you don't have to.

## Tools

### create_org_key
Create an organization key for higher level access. This is useful for multi-tenant setups.

### delete_key
Delete an existing API key. This is the fastest way to revoke access for a specific client.

### delete_policy
Delete a security policy. Use this to clean up old rules and keep your gateway tidy.

### get_key
Get the details for a specific API key. Use this to audit active sessions and metadata.

### list_apis
List all active API definitions. This gives you a birds-eye view of your entire gateway setup.

### update_key
Update an existing API key. Use this to change session details without creating new ones.

### update_policy
Update an existing security policy. This lets you tweak rate limits on the fly.

### create_api_definition
Create a new API definition using the Tyk Classic format. This helps you set up new endpoints quickly.

### create_key
Create a new API key session object. Use this to give clients immediate access to your gateway.

### get_policy
Get the details of a single policy. Use this to check rate limits and access rights.

### hot_reload
Force the Gateway to refresh its configuration. This applies your changes instantly without a restart.

### create_policy
Create a new security policy. Use this to define how users can interact with your APIs.

## Prompt Examples

**Prompt:** 
```
I need to create a new API key for our 'Mobile-App' client. Can you do that?
```

**Response:** 
```
I've created a new API key for the 'Mobile-App' client. Here are the details:

* **Key ID**: 8829-x921
* **Status**: Active
* **Permissions**: Standard

Let me know if you need anything else.
```

**Prompt:** 
```
Show me all the APIs currently listed in my dashboard.
```

**Response:** 
```
Here are your active API definitions:

| Name | Version | Status |
| :--- | :--- | :--- |
| Auth-Service | v1.2 | Active |
| Payment-Gateway | v2.0 | Active |
| User-Management | v1.1 | Active |

You have 3 APIs currently active. Which one would you like to inspect?
```

**Prompt:** 
```
The 'Auth-Service' is getting too much traffic. Can you update its policy to limit it to 500 requests per minute?
```

**Response:** 
```
Updating the policy for 'Auth-Service'... Done.

* **New Limit**: 500 requests per minute
* **Action**: Policy updated successfully

I've also triggered a hot reload to ensure the change is live across the gateway.
```

## Capabilities

### Create new API keys
Generate session objects for your clients through a chat interface.

### Set up security policies
Define rate limits and access rights for your API ecosystem.

### Trigger gateway hot reloads
Force your gateway to refresh configuration changes instantly.

### List active API definitions
See all your active APIs in a single summary view.

### Audit key metadata
Fetch specific details for keys to check status and performance.

## Use Cases

### Emergency Rate Limit Adjustment
A site is getting hammered. You tell the agent to update the policy to lower the limit immediately.

### Onboarding a New Client
A new partner needs access. You ask the agent to create a key and provide the details.

### Configuration Refresh
You changed a setting in the dashboard but it's not live. You ask the agent to trigger a hot reload.

### Security Audit
You need to check if a specific key is still active. You ask the agent to fetch the metadata for that key.

## Benefits

- Get your gateway updated instantly by using hot_reload to push changes without a restart.
- Stop hunting for keys by using create_key and get_key to manage session objects in seconds.
- Control access more precisely by using create_policy and update_policy to set rate limits.
- Audit your infrastructure faster by using list_apis to see every active definition at once.
- Reduce manual errors by using create_org_key to manage organization-level permissions.

## How It Works

The bottom line is you get a conversational interface for your entire Tyk gateway.

1. Subscribe to the Tyk MCP on Vinkius.
2. Provide your Tyk URL and Gateway Secret or Dashboard Token.
3. Ask your agent to create keys, update policies, or list APIs.

## Frequently Asked Questions

**Can the Tyk MCP manage my API keys?**
Yes, it allows your AI agent to create, update, and delete session objects and organization keys directly.

**How do I trigger a gateway refresh?**
You can just tell your agent to perform a hot reload, which forces the gateway to apply your latest configuration changes instantly.

**Can I use this to check rate limits?**
Yes, you can ask your agent to fetch the details of any specific security policy to see the current limits and quotas.

**Does this work with the Tyk Dashboard?**
It connects to your Tyk instance, so any actions taken by the AI agent will reflect in your dashboard and gateway.

**Is it safe for production?**
It uses your existing Gateway Secret or Dashboard Token, so it has the same permissions you'd have when using the dashboard yourself.

**Can I list all my APIs at once?**
Yes, your agent can pull a list of all active API definitions so you can see your entire ecosystem in one view.

**How do I apply changes to my Tyk Gateway after updating a policy?**
You can use the `hot_reload` tool. This forces the Tyk Gateway to reload its configuration and API definitions, ensuring all updates are live without a full restart.

**Can I list all my existing API definitions from the Dashboard?**
Yes! Use the `list_apis` tool. It returns a paginated list of all API definitions. You can also filter by name using the optional search string.

**Is it possible to retrieve the details of a specific API key?**
Absolutely. Use the `get_key` tool with the specific Key ID. The agent will return the session object, including access rights and rate limit configurations.