MCP ExplorerExplorer

Mcp Scripts

@theArjunon a year ago
1 MIT
FreeCommunity
AI Systems
MCP Scripts for configuring Claude and Cursor in VSCode.

Overview

What is Mcp Scripts

mcp-scripts is a set of scripts designed for configuring Claude and Cursor within Visual Studio Code (VSCode), enabling seamless integration and management of MCP servers.

Use cases

Use cases for mcp-scripts include setting up development environments for AI applications, configuring automated testing frameworks, and managing multiple MCP servers for different projects.

How to use

To use mcp-scripts, configure the paths for Claude and Cursor settings as specified in the README. You can add MCP servers via the VSCode CLI or create a new workspace in agent mode. Dependencies can be added using Python’s FastMCP.

Key features

Key features include the ability to configure multiple MCP servers, support for different transport modes (stdio and sse), and the use of environment variables for sensitive configurations. It also allows for easy integration with GitHub Copilot.

Where to use

mcp-scripts can be used in software development environments, particularly for projects that require integration with AI models and tools like GitHub Copilot, enhancing productivity in coding tasks.

Content

MCP Scripts

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers