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
- fmind/dottheir own version, first seen Oct 5, 2026
- jonmumm/skillstheir own version, first seen Oct 4, 2026
- AzamatRaimbekov/vibe-coding-mentortheir own version, first seen Sep 6, 2026
- ingpoc/SKILLStheir own version, first seen Aug 10, 2026
- vellum-ai/vellum-assistanttheir own version, first seen Jul 8, 2026
- naman10parikh/agentgridtheir own version, first seen May 26, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- vellum-ai/vellum-assistant★ 1.4ksame name
- fmind/dot★ 10same name
- ingpoc/SKILLS★ 9same name
- naman10parikh/agentgrid★ 9same name
- hajekim/agentic-design-patterns-skills★ 4same name
- AzamatRaimbekov/vibe-coding-mentor★ 3same name
- jonmumm/skills★ 2same name
- troyjthomas/ios-agent-skills★ 2same name
- hajekim/agentic-design-patterns-extension★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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
- Distinctive: line 16
Prefer stdio for local servers (simplest).
- Distinctive: line 18
Never commit secrets; use env var references in config.
- Distinctive: line 19
After config changes, tell the user to reload MCP / restart Cursor if tools do not appear.
- Very specific: line 20
Verify with mcp-tester when available: npx mcp-tester -- <server command>.
- Distinctive: line 38
Ask only what blocks progress (max 1–2 questions):
- Very specific: line 54
Create or merge .cursor/mcp.json.
- Distinctive: line 76
Put API keys in environment variables, not committed files.
- Distinctive: line 77
If merging into existing JSON, preserve other servers.
- Distinctive: line 81
If the user needs a new server:
- Very specific: line 83
Add a minimal stdio server from templates/demo-server.js (or Python variant in reference).
- Distinctive: line 105
If mcp-tester is unavailable, smoke with a tiny Node client or ask the user to open Cursor MCP logs after reload.
“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.
Files
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 user1. 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
| Situation | Transport |
Local CLI / node / python / npx server | stdio |
| Remote hosted MCP endpoint | Streamable HTTP (see reference.md) |
| Unsure | stdio |
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
npxservers:"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:
- Add a minimal stdio server from templates/demo-server.js (or Python variant in reference).
- Implement at least one tool with a clear
inputSchema. - 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 demoPass criteria:
- Handshake succeeds (
initialize) tools/listreturns expected tools- One
tools/callreturns 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:
- Where config was written
- Exact server start command
- How to reload MCP in Cursor
- Which tools should appear
- Optional: link to mcp-tester for future debugging
Common failures
| Symptom | Likely cause | Fix |
| No tools in Cursor | Config path wrong / need reload | Fix .cursor/mcp.json, reload MCP |
| Server exits immediately | Crash on startup | Run command in terminal; check stderr |
| Parse / JSON-RPC errors | Logs written to stdout | Move logs to stderr |
| Missing API key | Env not passed | Set env in shell or mcp.json env |
| Works in mcp-tester, not Cursor | Different command/cwd | Align Cursor args with the working command |
Additional resources
- Config & transport details: reference.md
- Copy-paste scenarios: examples.md
- Templates: templates/
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
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.

