# Anthropic Claude Code Plugin

The Aikido MCP Plugin connects Aikido’s security engine to AI coding tools. It automatically scans AI generated code for vulnerabilities and hardcoded secrets as soon as it is created.

AI assistants can review their own output, but that review is not perfect. Aikido adds a reliable and consistent security layer that checks every generated snippet with proven scanning rules.

**Why use Aikido MCP**

* Deterministic, independent security checks on every AI generated snippet before it is committed
* Immediate detection and remediation of vulnerabilities and hardcoded secrets in AI assisted workflows
* Real time feedback, making AI driven development safer by default

## Installation for Claude Code CLI

{% stepper %}
{% step %}
**Create a Personal Access Token**

In Aikido, go to [Settings → Integrations → IDE → MCP](https://app.aikido.dev/settings/integrations/ide/mcp)

Create a Personal Access Token (PAT) and copy/paste somewhere in a secure location.
{% endstep %}

{% step %}
**Install the Aikido Plugin**

Installing the Aikido Claude Code plugins can be done via Claude Code CLI.

* Open up the terminal and enter `claude`.
* Now, you can install the plugin from the Claude Plugins Marketplace
  * `/plugin install aikido@claude-plugins-official`
* After install, run `/reload-plugins` to activate the plugin.
* A restart of Claude Code CLI is needed to load the skills. You can exit Claude Code CLI by typing `exit`.
* After you've started Claude Code again, run the setup skill with the previously generated PAT:
  * `/aikido:setup your-PAT-here`

By default, this saves the PAT to your Claude Code user settings and registers the MCP server automatically.
{% endstep %}

{% step %}
**Finished**

The Aikido Claude Plugin is now available in Claude Code.
{% endstep %}
{% endstepper %}

### Use an environment variable instead of Claude settings

If you do not want to store the token in your Claude Code settings file, set `AIKIDO_API_KEY` in your system environment before starting Claude Code.

{% tabs %}
{% tab title="macOS / Linux" %}

```shellscript
export AIKIDO_API_KEY=your-token-here
claude
```

{% endtab %}

{% tab title="Windows PowerShell" %}

```powershell
$env:AIKIDO_API_KEY="your-token-here"
claude
```

{% endtab %}
{% endtabs %}

### Troubleshooting

If the setup skill fails to start the MCP server, check the [troubleshooting guide](https://help.aikido.dev/ai-and-dev-tools/aikido-mcp/mcp-troubleshooting).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/ai-and-dev-tools/aikido-mcp/anthropic-claude-code-mcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
