# MCP server

Connect Skill Studio to your agent. Then you can ask the agent to check, fix and park your skills.

The server is the stdio command `npx -y skill-studio@latest mcp`, named `skill-studio`. It needs Node.js and macOS. The first start downloads the package.

## Let your agent set it up

Copy this prompt into your agent. It adds the server, checks your skills without changing anything, and tells you what to try next.

```text
Set up Skill Studio for me. Skill Studio finds broken, duplicate and unused agent skills on this Mac and fixes or parks them, with undo. It runs as an MCP server and a CLI.

1. Add the Skill Studio MCP server to yourself at user scope. The server name is "skill-studio" and the stdio command is `npx -y skill-studio@latest mcp`. Run the line for the agent you are.
   - Claude Code: claude mcp add --scope user --transport stdio skill-studio -- npx -y skill-studio@latest mcp (if it says the server exists, run claude mcp remove --scope user skill-studio first)
   - Codex: codex mcp add skill-studio -- npx -y skill-studio@latest mcp
   - OpenCode: opencode mcp add --global skill-studio -- npx -y skill-studio@latest mcp
   - pi: pi mcp add skill-studio -- npx -y skill-studio@latest mcp
   - Grok Build: grok mcp add skill-studio -- npx -y skill-studio@latest mcp (if it says the server exists, run grok mcp remove skill-studio first)
   - VS Code: code --add-mcp '{"name":"skill-studio","type":"stdio","command":"npx","args":["-y","skill-studio@latest","mcp"]}'
   - Gemini CLI: gemini mcp add --scope user skill-studio npx -- -y skill-studio@latest mcp
   For any other agent, follow https://useskillstudio.com/docs/mcp.md.
2. Check my skills now, without changing anything: run `npx -y skill-studio@latest diagnose` and give me a short list of the problems it found. It exits with code 1 when it finds problems; that is not a failure.
3. Tell me to restart you so the skill-studio tools load. Then suggest one next step, for example: “Park the skills I haven’t used in 30 days.”
```

The Skill Studio app can do this too. Open **Settings** and select **Connect** in your agent's row. Cursor's row says **Add to Cursor**. A row that says **Copy command** gives you the command to run in your terminal.

## Add it yourself

Each command adds the server for your user, so it works in every project. Restart the agent after you add the server.

### Claude Code

Run:

```sh
claude mcp add --scope user --transport stdio skill-studio -- npx -y skill-studio@latest mcp
```

If Claude Code already has a `skill-studio` entry, remove it first with `claude mcp remove --scope user skill-studio`.

Or add it to `.mcp.json (project)`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `claude mcp list` and look for `skill-studio`.

### Codex

Run:

```sh
codex mcp add skill-studio -- npx -y skill-studio@latest mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.skill-studio]
command = "npx"
args = ["-y", "skill-studio@latest", "mcp"]
startup_timeout_sec = 30
```

To check, run `codex mcp list` and look for `skill-studio`.

### Cursor

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=skill-studio&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNraWxsLXN0dWRpb0BsYXRlc3QiLCJtY3AiXX0%3D) opens Cursor, which asks you to confirm.

Or add it to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `cursor-agent mcp list` and look for `skill-studio`.

### OpenCode

Run:

```sh
opencode mcp add --global skill-studio -- npx -y skill-studio@latest mcp
```

### pi

Run:

```sh
pi mcp add skill-studio -- npx -y skill-studio@latest mcp
```

Or add it to `~/.pi/agent/mcp.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `pi mcp list` and look for `skill-studio`.

### Grok Build

Run:

```sh
grok mcp add skill-studio -- npx -y skill-studio@latest mcp
```

If Grok Build already has a `skill-studio` entry, remove it first with `grok mcp remove skill-studio`.

To check, run `grok mcp list` and look for `skill-studio`.

### VS Code

[Add to VS Code](vscode:mcp/install?%7B%22name%22%3A%22skill-studio%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22skill-studio%40latest%22%2C%22mcp%22%5D%7D) opens VS Code, which asks you to confirm.

Or run:

```sh
code --add-mcp '{"name":"skill-studio","type":"stdio","command":"npx","args":["-y","skill-studio@latest","mcp"]}'
```

### Gemini CLI

Run:

```sh
gemini mcp add --scope user skill-studio npx -- -y skill-studio@latest mcp
```

To check, run `gemini mcp list` and look for `skill-studio`.

### Claude Desktop

Add it to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

### Any other agent

Add a stdio MCP server named `skill-studio` with the command `npx` and the arguments `-y skill-studio@latest mcp`.

## What your agent can do

- List your skills and find problems.
- Find unused skills, and skills that are past their review date.
- Find skills that have copies with different content.
- Check how much of each agent's skill listing budget your skills use.
- Fix broken skills.
- List hook events, MCP server names and instruction file paths.
- Set or clear a review date.
- Park and unpark skills. Parking turns a skill off for every agent.
- Turn a skill off for one agent only. The agent checks first, then splits the shared skill and parks one copy.
- Set whether a skill runs only when you ask for it, or when the model picks it too.
- Split a shared skill into separate copies for selected agents.
- Remove a duplicate copy.
- Install skills, find skills that have a newer version, and update them.
- List past changes and restore one.

## Try it

Ask your agent:

```text
Find my unused and broken skills and park the ones I don't need.
```

## Undo

Changes with a restore action appear in the same history as app changes. Open **Activity** and select **Restore**, or use `restore_event` with the event ID. The CLI command `npx skill-studio@latest undo` tries the latest change. To reverse a park, use `unpark`. To reverse an unpark, use `park`.
