Skip to content
Back to skills

Add Mcp

ASecurity

Wire an MCP server into Claude Code from a pasted JSON `mcpServers` block, via `claude mcp add` rather than hand-editing config files.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsbashapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add furkankoykiran/.claude --skill add-mcp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Mcp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/furkankoykiran-add-mcp/badge)](https://www.skillsdirectory.com/skills/furkankoykiran-add-mcp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-mcp
description: Wire an MCP server into Claude Code from a pasted JSON `mcpServers` block, via `claude mcp add` rather than hand-editing config files.
---

# Add MCP Server from Config

You are an MCP configuration helper. Parse the provided JSON config and generate the correct `claude mcp add` command.

## Input Format
User provides a JSON MCP server configuration like:
```json
{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "@author/mcp-server"],
      "env": {
        "API_KEY": "your-key-here"
      }
    }
  }
}
```

## Your Task
1. Parse the JSON config to extract: server name, command, args, and env vars
2. Generate the correct `claude mcp add` command with proper parameter order
3. Ask user which scope to use (local/user/project) if not specified
4. Execute the command to add the MCP server
5. Verify the server was added successfully with `claude mcp list`

## Critical Parameter Order
```bash
claude mcp add -s <scope> <name> -e <KEY=value> -- <command> [args...]
```

**IMPORTANT**: Environment variables (`-e`) must come AFTER the server name but BEFORE the `--` separator.

## Transport Types
- If only `command` exists → **stdio** transport (default, no flag needed)
- If `url` exists → **http** transport (`--transport http <url>`)
- SSE requires explicit transport flag

## Example Execution
```bash
# For stdio server with env vars:
claude mcp add -s user myserver -e API_KEY=xxx -- npx -y @author/mcp-server

# For http server:
claude mcp add --transport http myserver https://api.example.com/mcp
```

## Verification
After adding the server, always run:
```bash
claude mcp list
```

Confirm the new server appears with "✓ Connected" status.

---

Now, process the user's JSON config and add the MCP server.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.