How to use the MCP Server Config Generator
- 1. Pick your appChoose Claude Desktop, Claude Code, VS Code or Cursor.
- 2. Choose serversTick reference servers, GitHub, or add your own local or remote server with arguments and environment variables.
- 3. Save the fileCopy or download the JSON, save it where the tool says, and restart the app.
What MCP is
The Model Context Protocol (MCP) is an open standard that lets AI apps connect to tools and data through small programs called MCP servers. A server might read files in a folder, query a Git repository or call an API. Each app lists its servers in a JSON config file, but the format differs. Claude Desktop, Claude Code and Cursor use an mcpServers object, while VS Code uses servers and can prompt for secrets with an inputs section. This generator writes the right shape for each, using the official reference servers' package names.
Worked example
With the defaults (Claude Desktop, the filesystem server for /Users/asha/Documents/notes and the memory server), you get a config with 2 servers. filesystem runs npx -y @modelcontextprotocol/server-filesystem /Users/asha/Documents/notes and memory runs npx -y @modelcontextprotocol/server-memory. The tool tells you to install Node.js for npx and to save the file as claude_desktop_config.json. Choose Claude Code instead and you also get the matching claude mcp add terminal commands.
Safety
- Only add servers you trust; a server can read or change whatever you give it access to.
- Give the filesystem server only the folders it needs.
- Replace placeholders like YOUR_GITHUB_TOKEN on your own machine and never commit real tokens to Git.
- On Windows, tick the Windows option so npx and uvx run through
cmd /c, which some apps need.
Frequently asked questions
Why is GitHub missing from my Claude Desktop file?
Claude Desktop adds remote (HTTP) servers through Settings → Connectors rather than the config file, so the tool leaves them out and tells you.
Does the tool connect to any server?
No. It only writes the config text in your browser.
Is the MCP server config generator free?
Yes. You can open the MCP server config generator and fill in everything without signing up. When you generate a config for the first time, we ask once for your name and WhatsApp number; after that it, and every other Uncodemy tool, opens straight away.