# MCP Setup

> Install and configure MCP servers in Cursor projects — mcp.json templates, dependency-based servers, and verification. Use when adding MCP servers, configuring Cursor integrations, or setting up agent tooling.

- Skill: `valentierro/mcp-setup` (Agent Skill)
- Install (CLI): `npx skillmds@latest add valentierro/mcp-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/valentierro/mcp-setup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: valentierro (https://skillmd.com/u/valentierro)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/valentierro/mcp-setup

---


# MCP Setup

## Config locations

| Scope | Path |
|-------|------|
| Global | `~/.cursor/mcp.json` |
| Project | `.cursor/mcp.json` |

## Install from GitHub dependency

For `@valentierro/mcp-github`:

```json
{
  "mcpServers": {
    "github-local": {
      "command": "npx",
      "args": ["-y", "github:valentierro/mcp-github"]
    }
  }
}
```

## Install from local path (development)

```json
{
  "mcpServers": {
    "github-local": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-github/dist/index.js"]
    }
  }
}
```

## Verification checklist

```
MCP Setup:
- [ ] mcp.json valid JSON
- [ ] Server command resolves (node/npx/docker)
- [ ] Auth configured (gh auth login / env vars)
- [ ] Cursor restarted or MCP reloaded
- [ ] Test tool call succeeds
```

## Project bootstrap template

When starting a new project with agent tooling:

1. Add `.cursor/mcp.json` with required servers
2. `npm install @valentierro/cursor-skills`
3. `npx cursor-skills-install --project .`
4. Document servers in project README

## Official GitHub MCP (API)

For issues, code search, Actions — add the [official GitHub MCP](https://github.com/github/github-mcp-server) alongside the local git MCP.

