# agent-add-mcp

agent-add-mcp is a Claude Code skill that adds MCP servers to Warp configuration. It handles global or project scope and local or URL-based servers.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dominikmartn/harp/tree/HEAD/resources/bundled/skills/add-mcp-server/SKILL.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/agent-add-mcp

## What it does

agent-add-mcp guides an agent through adding an MCP server to Warp configuration. It chooses between the global file `~/.warp/.mcp.json` and the project file `{repo_root}/.warp/.mcp.json`, depending on the requested scope.

The skill inspects existing JSON, keeps its recognized wrapper key, and preserves current server entries. Local processes use `command` and `args`; HTTP/SSE connections use `url`. Secret values can be referenced with `${VAR_NAME}`, while `working_directory` sets a different launch directory for relative paths.

When the target file is missing, the setup creates its directory with `mkdir -p` and starts with an `mcpServers` object. Warp detects saved `.mcp.json` changes without a restart, and lists the servers in Settings under MCP as “Detected from Warp”.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill agent-add-mcp -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/add-mcp-server/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/add-mcp-server/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill agent-add-mcp -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/add-mcp-server/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill agent-add-mcp -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/add-mcp-server/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dominikmartn/harp resources/bundled/skills/add-mcp-server
```

2. **Manually: put the files in place**
- File: `.github/skills/add-mcp-server/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill agent-add-mcp -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dominikmartn/harp --path resources/bundled/skills/add-mcp-server
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/add-mcp-server/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dominikmartn/harp/tree/HEAD/resources/bundled/skills/add-mcp-server/SKILL.md

## When to use it
- add an MCP server to Warp for every session
- limit an MCP server to one repository
- preserve existing entries while editing `.mcp.json`
- configure either a local stdio process or an HTTP/SSE URL
- set a working directory for a relative server path

## Example prompts
- Add `server-name` to Warp's global MCP configuration using a local command.
- Configure an MCP server with a URL and `${API_KEY}` in `{repo_root}/.warp/.mcp.json`.
- Inspect the existing `.mcp.json` and add the new server without removing current entries.

## Similar
- [convex-add](https://affpapa.org/en/nevibecode/skills/convex-add.md) — skill · 43900 installs
- [recoup-roster-add-artist](https://affpapa.org/en/nevibecode/skills/recoup-roster-add-artist.md) — skill · 5200 installs
- [add-app-to-server](https://affpapa.org/en/nevibecode/skills/add-app-to-server.md) — skill · 1200 installs
- [warp-delegate](https://affpapa.org/en/nevibecode/skills/warp-delegate.md) — skill · 3100 installs
- [add-agent-playbooks](https://affpapa.org/en/nevibecode/skills/add-agent-playbooks.md) — skill · 110 installs
- [add-context-gateway](https://affpapa.org/en/nevibecode/skills/add-context-gateway.md) — skill · 107 installs

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
