Swytchcode MCP server logo

Swytchcode MCP server

by Swytchcode

This is a Model Context Protocol (MCP) server implementation designed to interact with Swytchcode. It allows you to integrate Swytchcode's functionalities with applications like Claude Desktop.

View on GitHub

Last updated: N/A

Swytchcode MCP server

Model Context Protocol (MCP) server implementation to interact with Swytchcode.

Index

  1. Requirements
  2. Obtain Swytchcode API Key
  3. Installation
  4. Configuration with Claude Desktop
  5. Invoking from Claude Desktop

Requirements

Obtain Swytchcode API Key

Open api_key.sh file and replace the following parameters with your own

EMAIL="USERNAME"
PASSWORD="PASSWORD"

Run the following command to obtain the Swytchcode API key

# Permissions
chmod +x api_key.sh

# Execute script
./api_key.sh

Note: Ensure jq is installed on your system

Replace the value with your actual key in index.ts file

const SWYTCHCODE_API_KEY = "YOUR KEY"

Installation

cd swytchcode-mcp-server

# install dependencies
npm install

# build project
npm run build

Configuration with Claude Desktop

Mac/Linux

Open the file with any code editor. We are using VSC in our case

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

and paste the following after modifying the path to your script

{
    "mcpServers": {
        "swytchcode": {
            "command": "node",
            "args": [
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/swytchcode-mcp-server/build/index.js"
            ]
        }
    }
}

Windows

Open the following file

code $env:AppData\Claude\claude_desktop_config.json

and paste the following after modifying the path to your script

{
    "mcpServers": {
        "swytchcode": {
            "command": "node",
            "args": [
                "C:\\PATH\\TO\\PARENT\\FOLDER\\swytchcode-mcp-server\\build\\index.js"
            ]
        }
    }
}

Invoking from Claude Desktop

Restart Calude Desktop after the changes are made to the claude_desktop_config.json file. You should now see 2 new tools installed

  1. swytchcode-generate-code
  2. swytchcode-list-options

Try running the following command

list workflows stripe:v3 *

If you see an output, then congratulations! you have installed Swytchcode MCP server successfully 🎉🎉

You can find all the available commands here