12 Mcp Hosts

Module
Getting Started
Progress
66%

Setting Up Popular MCP Host Clients

This guide covers how to configure and use MCP servers with popular AI host applications. Each host has its own configuration approach, but once set up, they all communicate with MCP servers using the standardized protocol.

What is an MCP Host?

An MCP Host is an AI application that can connect to MCP servers to extend its capabilities. Think of it as the "front end" that users interact with, while MCP servers provide the "back end" tools and data.


flowchart LR

    User[๐Ÿ‘ค User] --> Host[๐Ÿ–ฅ๏ธ MCP Host]

    Host --> S1[MCP Server A]

    Host --> S2[MCP Server B]

    Host --> S3[MCP Server C]

    

    subgraph "Popular Hosts"

        H1[Claude Desktop]

        H2[VS Code]

        H3[Cursor]

        H4[Cline]

        H5[Windsurf]

    end

Prerequisites

  • An MCP server to connect to (see Module 3.1 - First Server)
  • The host application installed on your system
  • Basic familiarity with JSON configuration files
  • ---

    1. Claude Desktop

    Claude Desktop is Anthropic's official desktop application that natively supports MCP.

    Installation

    1. Download Claude Desktop from claude.ai/download

    2. Install and sign in with your Anthropic account

    Configuration

    Claude Desktop uses a JSON configuration file to define MCP servers.

    Configuration file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Example configuration:

    
    {
    
      "mcpServers": {
    
        "calculator": {
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"],
    
          "env": {
    
            "PYTHONPATH": "/path/to/your/server"
    
          }
    
        },
    
        "weather": {
    
          "command": "node",
    
          "args": ["/path/to/weather-server/build/index.js"]
    
        },
    
        "database": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-postgres"],
    
          "env": {
    
            "DATABASE_URL": "postgresql://user:pass@localhost/mydb"
    
          }
    
        }
    
      }
    
    }
    
    

    Configuration Options

    | Field | Description | Example |

    |-------|-------------|---------|

    | command | The executable to run | "python", "node", "npx" |

    | args | Command line arguments | ["-m", "my_server"] |

    | env | Environment variables | {"API_KEY": "xxx"} |

    | cwd | Working directory | "/path/to/server" |

    Testing Your Setup

    1. Save the configuration file

    2. Restart Claude Desktop completely (quit and reopen)

    3. Open a new conversation

    4. Look for the ๐Ÿ”Œ icon indicating connected servers

    5. Try asking Claude to use one of your tools

    Troubleshooting Claude Desktop

    Server not appearing:

  • Check the configuration file syntax with a JSON validator
  • Ensure the command path is correct
  • Check Claude Desktop logs: Help โ†’ Show Logs
  • Server crashes on startup:

  • Test your server manually in terminal first
  • Check environment variables are set correctly
  • Ensure all dependencies are installed
  • ---

    2. VS Code with GitHub Copilot

    VS Code supports MCP through GitHub Copilot Chat extensions.

    Prerequisites

    1. VS Code 1.99+ installed

    2. GitHub Copilot extension installed

    3. GitHub Copilot Chat extension installed

    Configuration

    VS Code uses .vscode/mcp.json in your workspace or user settings.

    Workspace configuration (.vscode/mcp.json):

    
    {
    
      "servers": {
    
        "my-calculator": {
    
          "type": "stdio",
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"]
    
        },
    
        "my-database": {
    
          "type": "sse",
    
          "url": "http://localhost:8080/sse"
    
        }
    
      }
    
    }
    
    

    User settings (settings.json):

    
    {
    
      "mcp.servers": {
    
        "global-server": {
    
          "type": "stdio",
    
          "command": "npx",
    
          "args": ["-y", "@anthropic/mcp-server-memory"]
    
        }
    
      },
    
      "mcp.enableLogging": true
    
    }
    
    

    Using MCP in VS Code

    1. Open the Copilot Chat panel (Ctrl+Shift+I / Cmd+Shift+I)

    2. Type @ to see available MCP tools

    3. Use natural language to invoke tools: "Calculate 25 * 48 using the calculator"

    Troubleshooting VS Code

    MCP servers not loading:

  • Check Output panel โ†’ "MCP" for error logs
  • Reload window: Ctrl+Shift+P โ†’ "Developer: Reload Window"
  • Verify the server runs standalone first
  • ---

    3. Cursor

    Cursor is an AI-first code editor with built-in MCP support.

    Installation

    1. Download Cursor from cursor.sh

    2. Install and sign in

    Configuration

    Cursor uses a similar configuration format to Claude Desktop.

    Configuration file location:

  • macOS: ~/.cursor/mcp.json
  • Windows: %USERPROFILE%\.cursor\mcp.json
  • Linux: ~/.cursor/mcp.json
  • Example configuration:

    
    {
    
      "mcpServers": {
    
        "filesystem": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
    
        },
    
        "github": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-github"],
    
          "env": {
    
            "GITHUB_TOKEN": "ghp_your_token_here"
    
          }
    
        }
    
      }
    
    }
    
    

    Using MCP in Cursor

    1. Open Cursor's AI chat (Ctrl+L / Cmd+L)

    2. MCP tools appear automatically in suggestions

    3. Ask the AI to perform tasks using connected servers

    ---

    4. Cline (Terminal-Based)

    Cline is a terminal-based MCP client, ideal for command-line workflows.

    Installation

    
    npm install -g @anthropic/cline
    
    

    Configuration

    Cline uses environment variables and command-line arguments.

    Using environment variables:

    
    export ANTHROPIC_API_KEY="your-api-key"
    
    export MCP_SERVER_CALCULATOR="python -m mcp_calculator_server"
    
    

    Using command-line arguments:

    
    cline --mcp-server "calculator:python -m mcp_calculator_server" \
    
          --mcp-server "weather:node /path/to/weather/index.js"
    
    

    Configuration file (~/.clinerc):

    
    {
    
      "apiKey": "your-api-key",
    
      "mcpServers": {
    
        "calculator": {
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"]
    
        }
    
      }
    
    }
    
    

    Using Cline

    
    # Start an interactive session
    
    cline
    
    
    
    # Single query with MCP
    
    cline "Calculate the square root of 144 using the calculator"
    
    
    
    # List available tools
    
    cline --list-tools
    
    

    ---

    5. Windsurf

    Windsurf is another AI-powered code editor with MCP support.

    Installation

    1. Download Windsurf from codeium.com/windsurf

    2. Install and create an account

    Configuration

    Windsurf configuration is managed through the settings UI:

    1. Open Settings (Ctrl+, / Cmd+,)

    2. Search for "MCP"

    3. Click "Edit in settings.json"

    Example configuration:

    
    {
    
      "windsurf.mcp.servers": {
    
        "my-tools": {
    
          "command": "python",
    
          "args": ["/path/to/server.py"],
    
          "env": {}
    
        }
    
      },
    
      "windsurf.mcp.enabled": true
    
    }
    
    

    ---

    Transport Types Comparison

    Different hosts support different transport mechanisms:

    | Host | stdio | SSE/HTTP | WebSocket |

    |------|-------|----------|-----------|

    | Claude Desktop | โœ… | โŒ | โŒ |

    | VS Code | โœ… | โœ… | โŒ |

    | Cursor | โœ… | โœ… | โŒ |

    | Cline | โœ… | โœ… | โŒ |

    | Windsurf | โœ… | โœ… | โŒ |

    stdio (standard input/output): Best for local servers started by the host

    SSE/HTTP: Best for remote servers or servers shared between multiple clients

    ---

    Common Troubleshooting

    Server won't start

    1. Test the server manually first:

    ```bash

    # For Python

    python -m your_server_module

    # For Node.js

    node /path/to/server/index.js

    ```

    2. Check the command path:

    - Use absolute paths when possible

    - Ensure the executable is in your PATH

    3. Verify dependencies:

    ```bash

    # Python

    pip list | grep mcp

    # Node.js

    npm list @modelcontextprotocol/sdk

    ```

    Server connects but tools don't work

    1. Check server logs - Most hosts have logging options

    2. Verify tool registration - Use MCP Inspector to test

    3. Check permissions - Some tools need file/network access

    Environment variables not passed

  • Some hosts sanitize environment variables
  • Use the env configuration field explicitly
  • Avoid sensitive data in config files (use secrets management)
  • ---

    Security Best Practices

    1. Never commit API keys to configuration files

    2. Use environment variables for sensitive data

    3. Limit server permissions to only what's needed

    4. Review server code before granting access to your system

    5. Use allowlists for file system and network access

    ---

    What's Next

  • 3.13 - Debugging with MCP Inspector
  • 3.1 - Create your first MCP server
  • Module 5 - Advanced Topics
  • ---

    Additional Resources

  • Claude Desktop MCP Documentation
  • VS Code MCP Extension
  • MCP Specification - Transports
  • Official MCP Servers Registry
  • ์ธ๊ธฐ ์žˆ๋Š” MCP ํ˜ธ์ŠคํŠธ ํด๋ผ์ด์–ธํŠธ ์„ค์ •

    ์ด ๊ฐ€์ด๋“œ๋Š” ์ธ๊ธฐ ์žˆ๋Š” AI ํ˜ธ์ŠคํŠธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ MCP ์„œ๋ฒ„๋ฅผ ๊ตฌ์„ฑํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋‹ค๋ฃน๋‹ˆ๋‹ค. ๊ฐ ํ˜ธ์ŠคํŠธ๋Š” ์ž์ฒด ๊ตฌ์„ฑ ๋ฐฉ์‹์„ ๊ฐ€์ง€๊ณ  ์žˆ์ง€๋งŒ, ์„ค์ •์ด ์™„๋ฃŒ๋˜๋ฉด ๋ชจ๋‘ ํ‘œ์ค€ํ™”๋œ ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•˜์—ฌ MCP ์„œ๋ฒ„์™€ ํ†ต์‹ ํ•ฉ๋‹ˆ๋‹ค.

    MCP ํ˜ธ์ŠคํŠธ๋ž€?

    MCP ํ˜ธ์ŠคํŠธ๋Š” MCP ์„œ๋ฒ„์— ์—ฐ๊ฒฐํ•˜์—ฌ ๊ธฐ๋Šฅ์„ ํ™•์žฅํ•  ์ˆ˜ ์žˆ๋Š” AI ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ์ƒํ˜ธ์ž‘์šฉํ•˜๋Š” "ํ”„๋ก ํŠธ ์—”๋“œ"๋กœ ์ƒ๊ฐํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, MCP ์„œ๋ฒ„๋Š” "๋ฐฑ ์—”๋“œ" ๋„๊ตฌ์™€ ๋ฐ์ดํ„ฐ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

    
    flowchart LR
    
        User[๐Ÿ‘ค ์‚ฌ์šฉ์ž] --> Host[๐Ÿ–ฅ๏ธ MCP ํ˜ธ์ŠคํŠธ]
    
        Host --> S1[MCP ์„œ๋ฒ„ A]
    
        Host --> S2[MCP ์„œ๋ฒ„ B]
    
        Host --> S3[MCP ์„œ๋ฒ„ C]
    
        
    
        subgraph "์ธ๊ธฐ ํ˜ธ์ŠคํŠธ"
    
            H1[ํด๋กœ๋“œ ๋ฐ์Šคํฌํ†ฑ]
    
            H2[VS ์ฝ”๋“œ]
    
            H3[์ปค์„œ]
    
            H4[ํด๋ผ์ธ]
    
            H5[์œˆ๋“œ์„œํ”„]
    
        end
    
    

    ์‚ฌ์ „ ์ค€๋น„ ์‚ฌํ•ญ

  • ์—ฐ๊ฒฐํ•  MCP ์„œ๋ฒ„ (์ž์„ธํ•œ ๋‚ด์šฉ์€ Module 3.1 - First Server ์ฐธ์กฐ)
  • ์‹œ์Šคํ…œ์— ์„ค์น˜๋œ ํ˜ธ์ŠคํŠธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜
  • JSON ๊ตฌ์„ฑ ํŒŒ์ผ์— ๋Œ€ํ•œ ๊ธฐ๋ณธ ์ดํ•ด
  • ---

    1. Claude Desktop

    Claude Desktop์€ Anthropic์˜ ๊ณต์‹ ๋ฐ์Šคํฌํ†ฑ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์œผ๋กœ MCP๋ฅผ ๋„ค์ดํ‹ฐ๋ธŒ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

    ์„ค์น˜

    1. claude.ai/download์—์„œ Claude Desktop ๋‹ค์šด๋กœ๋“œ

    2. ์„ค์น˜ ํ›„ Anthropic ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ

    ๊ตฌ์„ฑ

    Claude Desktop์€ MCP ์„œ๋ฒ„๋ฅผ ์ •์˜ํ•˜๊ธฐ ์œ„ํ•ด JSON ๊ตฌ์„ฑ ํŒŒ์ผ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

    ๊ตฌ์„ฑ ํŒŒ์ผ ์œ„์น˜:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • ๊ตฌ์„ฑ ์˜ˆ์‹œ:

    
    {
    
      "mcpServers": {
    
        "calculator": {
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"],
    
          "env": {
    
            "PYTHONPATH": "/path/to/your/server"
    
          }
    
        },
    
        "weather": {
    
          "command": "node",
    
          "args": ["/path/to/weather-server/build/index.js"]
    
        },
    
        "database": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-postgres"],
    
          "env": {
    
            "DATABASE_URL": "postgresql://user:pass@localhost/mydb"
    
          }
    
        }
    
      }
    
    }
    
    

    ๊ตฌ์„ฑ ์˜ต์…˜

    | ํ•„๋“œ | ์„ค๋ช… | ์˜ˆ์‹œ |

    |-------|-------------|---------|

    | command | ์‹คํ–‰ํ•  ์‹คํ–‰ ํŒŒ์ผ | "python", "node", "npx" |

    | args | ๋ช…๋ นํ–‰ ์ธ์ˆ˜ | ["-m", "my_server"] |

    | env | ํ™˜๊ฒฝ ๋ณ€์ˆ˜ | {"API_KEY": "xxx"} |

    | cwd | ์ž‘์—… ๋””๋ ‰ํ„ฐ๋ฆฌ | "/path/to/server" |

    ์„ค์ • ํ…Œ์ŠคํŠธ

    1. ๊ตฌ์„ฑ ํŒŒ์ผ ์ €์žฅ

    2. Claude Desktop ์™„์ „ํžˆ ์žฌ์‹œ์ž‘ (์ข…๋ฃŒ ํ›„ ๋‹ค์‹œ ์—ด๊ธฐ)

    3. ์ƒˆ ๋Œ€ํ™” ์—ด๊ธฐ

    4. ์—ฐ๊ฒฐ๋œ ์„œ๋ฒ„๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ๐Ÿ”Œ ์•„์ด์ฝ˜ ํ™•์ธ

    5. Claude์—๊ฒŒ ๋„๊ตฌ ์ค‘ ํ•˜๋‚˜๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด๋ผ๊ณ  ์š”์ฒญ

    Claude Desktop ๋ฌธ์ œ ํ•ด๊ฒฐ

    ์„œ๋ฒ„๊ฐ€ ๋‚˜ํƒ€๋‚˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ:

  • JSON ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๋„๊ตฌ๋กœ ๊ตฌ์„ฑ ํŒŒ์ผ ๋ฌธ๋ฒ• ํ™•์ธ
  • ๋ช…๋ น ๊ฒฝ๋กœ๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ์ง€ ํ™•์ธ
  • Claude Desktop ๋กœ๊ทธ ํ™•์ธ: ๋„์›€๋ง โ†’ ๋กœ๊ทธ ํ‘œ์‹œ
  • ์„œ๋ฒ„๊ฐ€ ์‹œ์ž‘ ์‹œ ์ถฉ๋Œํ•˜๋Š” ๊ฒฝ์šฐ:

  • ํ„ฐ๋ฏธ๋„์—์„œ ์„œ๋ฒ„๋ฅผ ์ˆ˜๋™์œผ๋กœ ๋จผ์ € ํ…Œ์ŠคํŠธ
  • ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์˜ฌ๋ฐ”๋ฅธ ์„ค์ • ํ™•์ธ
  • ๋ชจ๋“  ์ข…์† ํ•ญ๋ชฉ ์„ค์น˜ ์—ฌ๋ถ€ ํ™•์ธ
  • ---

    2. VS Code ๋ฐ GitHub Copilot

    VS Code๋Š” GitHub Copilot Chat ํ™•์žฅ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด MCP๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

    ์‚ฌ์ „ ์ค€๋น„

    1. VS Code 1.99 ์ด์ƒ ์„ค์น˜

    2. GitHub Copilot ํ™•์žฅ ์„ค์น˜

    3. GitHub Copilot Chat ํ™•์žฅ ์„ค์น˜

    ๊ตฌ์„ฑ

    VS Code๋Š” ์ž‘์—… ๊ณต๊ฐ„ ๋˜๋Š” ์‚ฌ์šฉ์ž ์„ค์ •์— .vscode/mcp.json ํŒŒ์ผ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

    ์ž‘์—… ๊ณต๊ฐ„ ๊ตฌ์„ฑ (.vscode/mcp.json):

    
    {
    
      "servers": {
    
        "my-calculator": {
    
          "type": "stdio",
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"]
    
        },
    
        "my-database": {
    
          "type": "sse",
    
          "url": "http://localhost:8080/sse"
    
        }
    
      }
    
    }
    
    

    ์‚ฌ์šฉ์ž ์„ค์ • (settings.json):

    
    {
    
      "mcp.servers": {
    
        "global-server": {
    
          "type": "stdio",
    
          "command": "npx",
    
          "args": ["-y", "@anthropic/mcp-server-memory"]
    
        }
    
      },
    
      "mcp.enableLogging": true
    
    }
    
    

    VS Code์—์„œ MCP ์‚ฌ์šฉํ•˜๊ธฐ

    1. Copilot Chat ํŒจ๋„ ์—ด๊ธฐ (Ctrl+Shift+I / Cmd+Shift+I)

    2. @ ์ž…๋ ฅํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ MCP ๋„๊ตฌ ๋ณด๊ธฐ

    3. ์ž์—ฐ์–ด๋กœ ๋„๊ตฌ ํ˜ธ์ถœ: "๊ณ„์‚ฐ๊ธฐ ์‚ฌ์šฉํ•˜์—ฌ 25 * 48 ๊ณ„์‚ฐํ•˜๊ธฐ"

    VS Code ๋ฌธ์ œ ํ•ด๊ฒฐ

    MCP ์„œ๋ฒ„ ๋กœ๋“œ ์‹คํŒจ:

  • ์ถœ๋ ฅ ํŒจ๋„ โ†’ "MCP"์—์„œ ์˜ค๋ฅ˜ ๋กœ๊ทธ ํ™•์ธ
  • ์ฐฝ ์ƒˆ๋กœ ๊ณ ์นจ: Ctrl+Shift+P โ†’ "Developer: Reload Window"
  • ์„œ๋ฒ„๊ฐ€ ๋…๋ฆฝ ์‹คํ–‰ํ˜•์œผ๋กœ ๋จผ์ € ์ž‘๋™ํ•˜๋Š”์ง€ ํ™•์ธ
  • ---

    3. Cursor

    Cursor๋Š” MCP๋ฅผ ๋‚ด์žฅํ•œ AI ์ค‘์‹ฌ ์ฝ”๋“œ ์—๋””ํ„ฐ์ž…๋‹ˆ๋‹ค.

    ์„ค์น˜

    1. cursor.sh์—์„œ Cursor ๋‹ค์šด๋กœ๋“œ

    2. ์„ค์น˜ ํ›„ ๋กœ๊ทธ์ธ

    ๊ตฌ์„ฑ

    Cursor๋Š” Claude Desktop๊ณผ ๋น„์Šทํ•œ ๊ตฌ์„ฑ ํ˜•์‹์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

    ๊ตฌ์„ฑ ํŒŒ์ผ ์œ„์น˜:

  • macOS: ~/.cursor/mcp.json
  • Windows: %USERPROFILE%\.cursor\mcp.json
  • Linux: ~/.cursor/mcp.json
  • ๊ตฌ์„ฑ ์˜ˆ์‹œ:

    
    {
    
      "mcpServers": {
    
        "filesystem": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
    
        },
    
        "github": {
    
          "command": "npx",
    
          "args": ["-y", "@modelcontextprotocol/server-github"],
    
          "env": {
    
            "GITHUB_TOKEN": "ghp_your_token_here"
    
          }
    
        }
    
      }
    
    }
    
    

    Cursor์—์„œ MCP ์‚ฌ์šฉํ•˜๊ธฐ

    1. Cursor์˜ AI ์ฑ„ํŒ… ์—ด๊ธฐ (Ctrl+L / Cmd+L)

    2. MCP ๋„๊ตฌ๊ฐ€ ์ œ์•ˆ์— ์ž๋™์œผ๋กœ ๋‚˜ํƒ€๋‚จ

    3. ์—ฐ๊ฒฐ๋œ ์„œ๋ฒ„๋ฅผ ์‚ฌ์šฉํ•ด AI์—๊ฒŒ ์ž‘์—… ์š”์ฒญ

    ---

    4. Cline (ํ„ฐ๋ฏธ๋„ ๊ธฐ๋ฐ˜)

    Cline์€ ํ„ฐ๋ฏธ๋„ ๊ธฐ๋ฐ˜ MCP ํด๋ผ์ด์–ธํŠธ๋กœ ๋ช…๋ น์ค„ ์ž‘์—…์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

    ์„ค์น˜

    
    npm install -g @anthropic/cline
    
    

    ๊ตฌ์„ฑ

    Cline์€ ํ™˜๊ฒฝ ๋ณ€์ˆ˜์™€ ๋ช…๋ นํ–‰ ์ธ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

    ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์‚ฌ์šฉ:

    
    export ANTHROPIC_API_KEY="your-api-key"
    
    export MCP_SERVER_CALCULATOR="python -m mcp_calculator_server"
    
    

    ๋ช…๋ นํ–‰ ์ธ์ˆ˜ ์‚ฌ์šฉ:

    
    cline --mcp-server "calculator:python -m mcp_calculator_server" \
    
          --mcp-server "weather:node /path/to/weather/index.js"
    
    

    ๊ตฌ์„ฑ ํŒŒ์ผ (~/.clinerc):

    
    {
    
      "apiKey": "your-api-key",
    
      "mcpServers": {
    
        "calculator": {
    
          "command": "python",
    
          "args": ["-m", "mcp_calculator_server"]
    
        }
    
      }
    
    }
    
    

    Cline ์‚ฌ์šฉ๋ฒ•

    
    # ๋Œ€ํ™”ํ˜• ์„ธ์…˜ ์‹œ์ž‘
    
    cline
    
    
    
    # MCP๋กœ ๋‹จ์ผ ์ฟผ๋ฆฌ
    
    cline "Calculate the square root of 144 using the calculator"
    
    
    
    # ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋„๊ตฌ ๋ชฉ๋ก
    
    cline --list-tools
    
    

    ---

    5. Windsurf

    Windsurf๋Š” MCP๋ฅผ ์ง€์›ํ•˜๋Š” ๋˜ ๋‹ค๋ฅธ AI ๊ธฐ๋ฐ˜ ์ฝ”๋“œ ์—๋””ํ„ฐ์ž…๋‹ˆ๋‹ค.

    ์„ค์น˜

    1. codeium.com/windsurf์—์„œ Windsurf ๋‹ค์šด๋กœ๋“œ

    2. ์„ค์น˜ ํ›„ ๊ณ„์ • ์ƒ์„ฑ

    ๊ตฌ์„ฑ

    Windsurf ๊ตฌ์„ฑ์€ ์„ค์ • UI๋ฅผ ํ†ตํ•ด ๊ด€๋ฆฌ๋ฉ๋‹ˆ๋‹ค:

    1. ์„ค์ • ์—ด๊ธฐ (Ctrl+, / Cmd+,)

    2. "MCP" ๊ฒ€์ƒ‰

    3. "settings.json์—์„œ ํŽธ์ง‘" ํด๋ฆญ

    ๊ตฌ์„ฑ ์˜ˆ์‹œ:

    
    {
    
      "windsurf.mcp.servers": {
    
        "my-tools": {
    
          "command": "python",
    
          "args": ["/path/to/server.py"],
    
          "env": {}
    
        }
    
      },
    
      "windsurf.mcp.enabled": true
    
    }
    
    

    ---

    ์ „์†ก ๋ฐฉ์‹ ๋น„๊ต

    ๊ฐ ํ˜ธ์ŠคํŠธ๋Š” ๋‹ค์–‘ํ•œ ์ „์†ก ๋ฐฉ์‹์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค:

    | ํ˜ธ์ŠคํŠธ | stdio | SSE/HTTP | WebSocket |

    |------|-------|----------|-----------|

    | Claude Desktop | โœ… | โŒ | โŒ |

    | VS Code | โœ… | โœ… | โŒ |

    | Cursor | โœ… | โœ… | โŒ |

    | Cline | โœ… | โœ… | โŒ |

    | Windsurf | โœ… | โœ… | โŒ |

    stdio (ํ‘œ์ค€ ์ž…๋ ฅ/์ถœ๋ ฅ): ํ˜ธ์ŠคํŠธ๊ฐ€ ์‹œ์ž‘ํ•œ ๋กœ์ปฌ ์„œ๋ฒ„์— ๊ฐ€์žฅ ์ ํ•ฉ

    SSE/HTTP: ์›๊ฒฉ ์„œ๋ฒ„๋‚˜ ์—ฌ๋Ÿฌ ํด๋ผ์ด์–ธํŠธ์—์„œ ๊ณต์œ ํ•˜๋Š” ์„œ๋ฒ„์— ๊ฐ€์žฅ ์ ํ•ฉ

    ---

    ๊ณตํ†ต ๋ฌธ์ œ ํ•ด๊ฒฐ

    ์„œ๋ฒ„๊ฐ€ ์‹œ์ž‘๋˜์ง€ ์•Š์„ ๋•Œ

    1. ์„œ๋ฒ„๋ฅผ ์ˆ˜๋™์œผ๋กœ ๋จผ์ € ํ…Œ์ŠคํŠธ:

    ```bash

    # ํŒŒ์ด์ฌ์šฉ

    python -m your_server_module

    # Node.js์šฉ

    node /path/to/server/index.js

    ```

    2. ๋ช…๋ น ๊ฒฝ๋กœ ํ™•์ธ:

    - ๊ฐ€๋Šฅํ•˜๋ฉด ์ ˆ๋Œ€ ๊ฒฝ๋กœ ์‚ฌ์šฉ

    - ์‹คํ–‰ ํŒŒ์ผ์ด PATH์— ํฌํ•จ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ

    3. ์ข…์† ํ•ญ๋ชฉ ํ™•์ธ:

    ```bash

    # ํŒŒ์ด์ฌ

    pip list | grep mcp

    # Node.js

    npm list @modelcontextprotocol/sdk

    ```

    ์„œ๋ฒ„๋Š” ์—ฐ๊ฒฐ๋˜์ง€๋งŒ ๋„๊ตฌ๊ฐ€ ์ž‘๋™ํ•˜์ง€ ์•Š์„ ๋•Œ

    1. ์„œ๋ฒ„ ๋กœ๊ทธ ํ™•์ธ - ๋Œ€๋ถ€๋ถ„์˜ ํ˜ธ์ŠคํŠธ๋Š” ๋กœ๊น… ์˜ต์…˜ ์ œ๊ณต

    2. ๋„๊ตฌ ๋“ฑ๋ก ํ™•์ธ - MCP Inspector๋กœ ํ…Œ์ŠคํŠธ

    3. ๊ถŒํ•œ ํ™•์ธ - ์ผ๋ถ€ ๋„๊ตฌ๋Š” ํŒŒ์ผ/๋„คํŠธ์›Œํฌ ์ ‘๊ทผ ๊ถŒํ•œ ํ•„์š”

    ํ™˜๊ฒฝ ๋ณ€์ˆ˜๊ฐ€ ์ „๋‹ฌ๋˜์ง€ ์•Š์„ ๋•Œ

  • ์ผ๋ถ€ ํ˜ธ์ŠคํŠธ๋Š” ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ํ•„ํ„ฐ๋งํ•จ
  • env ๊ตฌ์„ฑ ํ•„๋“œ๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ์‚ฌ์šฉ
  • ๊ตฌ์„ฑ ํŒŒ์ผ์— ๋ฏผ๊ฐํ•œ ๋ฐ์ดํ„ฐ ํฌํ•จํ•˜์ง€ ๋ง ๊ฒƒ (๋น„๋ฐ€ ๊ด€๋ฆฌ ์‚ฌ์šฉ)
  • ---

    ๋ณด์•ˆ ๋ชจ๋ฒ” ์‚ฌ๋ก€

    1. API ํ‚ค๋ฅผ ๊ตฌ์„ฑ ํŒŒ์ผ์— ์ ˆ๋Œ€ ์ปค๋ฐ‹ํ•˜์ง€ ๋ง ๊ฒƒ

    2. ๋ฏผ๊ฐํ•œ ๋ฐ์ดํ„ฐ๋Š” ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋กœ ๊ด€๋ฆฌ

    3. ์„œ๋ฒ„ ๊ถŒํ•œ์€ ํ•„์š”ํ•œ ๋ฒ”์œ„๋กœ ์ œํ•œ

    4. ์‹œ์Šคํ…œ ์ ‘๊ทผ ๊ถŒํ•œ ๋ถ€์—ฌ ์ „ ์„œ๋ฒ„ ์ฝ”๋“œ ๊ฒ€ํ† 

    5. ํŒŒ์ผ ์‹œ์Šคํ…œ ๋ฐ ๋„คํŠธ์›Œํฌ ์ ‘๊ทผ์— ํ—ˆ์šฉ ๋ชฉ๋ก ์‚ฌ์šฉ

    ---

    ๋‹ค์Œ ๋‹จ๊ณ„

  • 3.13 - MCP Inspector๋กœ ๋””๋ฒ„๊น…ํ•˜๊ธฐ
  • 3.1 - ์ฒซ ๋ฒˆ์งธ MCP ์„œ๋ฒ„ ๋งŒ๋“ค๊ธฐ
  • ๋ชจ๋“ˆ 5 - ๊ณ ๊ธ‰ ์ฃผ์ œ
  • ---

    ์ถ”๊ฐ€ ์ž๋ฃŒ

  • Claude Desktop MCP ๋ฌธ์„œ
  • VS Code MCP ํ™•์žฅ
  • MCP ๋ช…์„ธ - ์ „์†ก ๋ฐฉ์‹
  • ๊ณต์‹ MCP ์„œ๋ฒ„ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ
  • ---

    ๋ฉด์ฑ… ์กฐํ•ญ:

    ์ด ๋ฌธ์„œ๋Š” AI ๋ฒˆ์—ญ ์„œ๋น„์Šค Co-op Translator๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฒˆ์—ญ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

    ์ •ํ™•์„ฑ์„ ์œ„ํ•ด ๋…ธ๋ ฅํ•˜๊ณ  ์žˆ์œผ๋‚˜, ์ž๋™ ๋ฒˆ์—ญ์€ ์˜ค๋ฅ˜๋‚˜ ๋ถ€์ •ํ™•์„ฑ์ด ํฌํ•จ๋  ์ˆ˜ ์žˆ์Œ์„ ์œ ์˜ํ•ด ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

    ์›๋ณธ ๋ฌธ์„œ์˜ ์›์–ด ๋ฒ„์ „์ด ๊ถŒ์œ„ ์žˆ๋Š” ์ž๋ฃŒ๋กœ ๊ฐ„์ฃผ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    ์ค‘์š”ํ•œ ์ •๋ณด์˜ ๊ฒฝ์šฐ ์ „๋ฌธ์ ์ธ ์‚ฌ๋žŒ์— ์˜ํ•œ ๋ฒˆ์—ญ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

    ๋ณธ ๋ฒˆ์—ญ ์‚ฌ์šฉ์œผ๋กœ ์ธํ•œ ์–ด๋– ํ•œ ์˜คํ•ด๋‚˜ ์ž˜๋ชป๋œ ํ•ด์„์— ๋Œ€ํ•ด์„œ๋„ ๋‹น์‚ฌ๋Š” ์ฑ…์ž„์„ ์ง€์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

    MCP Academy — microsoft/mcp-for-beginners