agentleFS
kou-123kou-123/mcp-setup-skill/skills/mcp-setup/SKILL.md

mcp-setup

Skill1 starsChanged 2 months agoMITView on GitHub

Connect, scaffold, configure, and verify MCP servers in Cursor (mcp.json, stdio/HTTP transport, minimal server templates, smoke test with mcp-tester). Use when the user mentions MCP, Model Context Protocol, mcp.json, Cursor MCP, adding tools for the agent, scaffolding an MCP server, or debugging MCP setup.

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Prefer stdio for local servers (simplest).

    line 16
  2. Distinctive:

    Never commit secrets; use env var references in config.

    line 18
  3. Distinctive:

    After config changes, tell the user to reload MCP / restart Cursor if tools do not appear.

    line 19
  4. Very specific:

    Verify with mcp-tester when available: npx mcp-tester -- <server command>.

    line 20
  5. Distinctive:

    Ask only what blocks progress (max 1–2 questions):

    line 38
  6. Very specific:

    Create or merge .cursor/mcp.json.

    line 54
  7. Distinctive:

    Put API keys in environment variables, not committed files.

    line 76
  8. Distinctive:

    If merging into existing JSON, preserve other servers.

    line 77
  9. Distinctive:

    If the user needs a new server:

    line 81
  10. Very specific:

    Add a minimal stdio server from templates/demo-server.js (or Python variant in reference).

    line 83
  11. Distinctive:

    If mcp-tester is unavailable, smoke with a tiny Node client or ask the user to open Cursor MCP logs after reload.

    line 105

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Setup Wizard

Help the user wire an MCP server into Cursor end-to-end: choose transport, write config, optionally scaffold a minimal server, then verify tools work.

Defaults

  • Prefer stdio for local servers (simplest).
  • Config path: project .cursor/mcp.json (team-shareable) unless the user asks for global Cursor MCP settings.
  • Never commit secrets; use env var references in config.
  • After config changes, tell the user to reload MCP / restart Cursor if tools do not appear.
  • Verify with mcp-tester when available: npx mcp-tester -- <server command>.

Workflow

Copy and track:

MCP setup progress:
- [ ] 1. Clarify goal (use existing server vs build new)
- [ ] 2. Pick transport (stdio default; HTTP only if remote/shared)
- [ ] 3. Write mcp.json (no secrets in plain text)
- [ ] 4. Scaffold server only if needed
- [ ] 5. Verify tools/list + one tools/call
- [ ] 6. Document how to run / reload for the user

1. Clarify goal

Ask only what blocks progress (max 1–2 questions):

  • Existing server? → need start command (and args), or HTTP URL
  • New server? → language preference (default Node.js stdio)
  • Project vs personal config? → default project .cursor/mcp.json

2. Pick transport

SituationTransport
Local CLI / node / python / npx serverstdio
Remote hosted MCP endpointStreamable HTTP (see reference.md)
Unsurestdio

3. Write mcp.json

Create or merge .cursor/mcp.json. Use templates in templates/.

stdio shape:

{
  "mcpServers": {
    "demo": {
      "command": "node",
      "args": ["path/to/server.js"],
      "env": {
        "API_KEY": "${env:API_KEY}"
      }
    }
  }
}

Rules:

  • Absolute paths only when necessary; prefer repo-relative paths from project root.
  • For npx servers: "command": "npx", "args": ["-y", "package-name", ...].
  • Put API keys in environment variables, not committed files.
  • If merging into existing JSON, preserve other servers.

4. Scaffold (only when building new)

If the user needs a new server:

  1. Add a minimal stdio server from templates/demo-server.js (or Python variant in reference).
  2. Implement at least one tool with a clear inputSchema.
  3. Log only on stderr; stdout is for MCP JSON-RPC only.

5. Verify

Run in order:

# A) Protocol-level (recommended)
npx mcp-tester -- <the same command/args as in mcp.json>

# B) Or built-in demo of mcp-tester
npx mcp-tester demo

Pass criteria:

  • Handshake succeeds (initialize)
  • tools/list returns expected tools
  • One tools/call returns a non-error result

If mcp-tester is unavailable, smoke with a tiny Node client or ask the user to open Cursor MCP logs after reload.

6. Finish

Tell the user:

  1. Where config was written
  2. Exact server start command
  3. How to reload MCP in Cursor
  4. Which tools should appear
  5. Optional: link to mcp-tester for future debugging

Common failures

SymptomLikely causeFix
No tools in CursorConfig path wrong / need reloadFix .cursor/mcp.json, reload MCP
Server exits immediatelyCrash on startupRun command in terminal; check stderr
Parse / JSON-RPC errorsLogs written to stdoutMove logs to stderr
Missing API keyEnv not passedSet env in shell or mcp.json env
Works in mcp-tester, not CursorDifferent command/cwdAlign Cursor args with the working command

Additional resources

  • Config & transport details: reference.md
  • Copy-paste scenarios: examples.md
  • Templates: templates/

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.