Generate standard MCP configuration files for any compatible client
New in version: 2.10.3
FastMCP can generate standard MCP JSON configuration files that work with any MCP-compatible client including Claude Desktop, VS Code, Cursor, and other applications that support the Model Context Protocol.
mcpServers
object where each key represents a server name and the value contains the server’s configuration:
command
(required)args
(optional)env
(optional)~/.claude/claude_desktop_config.json
~/.cursor/mcp.json
.vscode/mcp.json
fastmcp install claude-code
, fastmcp install claude-desktop
, or fastmcp install cursor
. Use MCP JSON generation for advanced use cases and unsupported clients.fastmcp install mcp-json
command generates configuration in the standard mcpServers
format used across the MCP ecosystem. This is useful when:
mcpServers
object in your client’s configuration:
--python
, --project
, or --with-requirements
, the generated configuration will include these options in the uv run
command, ensuring your server runs with the correct Python version and dependencies.fastmcp.json
configuration file (recommended):
file.py:object
notation as other FastMCP commands:
--copy
flag requires the pyperclip
Python package. If not installed, you’ll see an error message with installation instructions.fastmcp install claude-desktop
for automatic installation. Use MCP JSON for advanced configuration needs.mcpServers
object into ~/.claude/claude_desktop_config.json
fastmcp install cursor
for automatic installation. Use MCP JSON for advanced configuration needs.~/.cursor/mcp.json
.vscode/mcp.json
file
mcpServers
configuration object.
Fields:
command
: The executable to run (always uv
for FastMCP servers)args
: Command-line arguments including dependencies and server pathenv
: Environment variables (only included if specified)--copy
functionality