MCP Scripts

April 10, 2025 ยท View on GitHub

Path for Claude Config:

$HOME/Library/Application Support/Claude/claude_desktop_config.json

Path for Cursor Config:

{$PROJECT_DIR}/.cursor/mcp.json

Path for vscode insiders

$HOME/Library/Application Support/Code - Insiders/User/settings.json

or project specific (explore on your own.)

Create a new workspace with agent mode (experimental) in VSCode:

Click here for instructions.

Add from CLI

Eg: install the Playwright MCP server using the VS Code CLI:

# For VS Code
code --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}'

After installation, the Playwright MCP server will be available for use with your GitHub Copilot agent in VS Code.

Available transport modes:

  1. stdio
  2. sse

Adding dependencies:

mcp = FastMCP(
    "MCP App Name",
    dependencies=[
        "httpx",
        "python-dotenv",
    ],
)

Add mcp settings in cursor

Configuring MCP Servers The MCP configuration file uses a JSON format with the following structure:

{
  "mcpServers": {
    "server-name": {
      "command": "python",
      "args": ["mcp-server.py"],
      "env": {
        "API_KEY": "value"
      }
    }
  }
}

The env field allows you to specify environment variables that will be available to your MCP server process. This is particularly useful for managing API keys and other sensitive configuration.

Client Feature Support Matrix

Click here.