# Building an MCP server (/ai--mcp-server)

/ai--mcp-server is a Claude Code skill in the AI & Agents section. Builds a Model Context Protocol server that exposes your project's functions, APIs or data to clients like Claude Code, with transport, auth and tests.

- Web version: https://skills.sgomez.dev/en/s/ai--mcp-server
- Section: [AI & Agents](https://skills.sgomez.dev/en/ai.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/ai/mcp-server.md
- Updated 10 Jul 2026

## How to ask for it

- `/ai--mcp-server create an MCP server that exposes our internal tools`
- `/ai--mcp-server add authentication to my MCP server`
- `/ai--mcp-server I need tests for my MCP server's tools`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install ai-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: `project test runners`, `MCP inspector/dev tooling`
- Network: No
- Destructive: No

## Author's description

Build an MCP server - tools, resources, prompts, transport, auth, testing

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
