jailbreak-mcp logo

jailbreak-mcp

Community
kranners

Break free of your MCP Client constraints 🦹

Publisherkranners
Repositoryjailbreak-mcp
LanguageTypeScript
Forks
12
Stars
10
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    jailbreak-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    10 stars and 12 forks from the linked repository.

jailbreak-mcp

[!IMPORTANT] This tool existed to fill a few functional gaps in existing MCP clients like Cursor or Claude Desktop, and is now antiquated as these tools implement it themselves.

The idea was to create a middleware MCP server & client which could whitelist or blacklist unwanted tools to save on context window, and to expose resources & prompts as tools.


A MCP server wrapper for using the entire Model Context Protocol without tool limits, missing concepts, or context overload.

Why does this exist?

MCP servers could be ✨ amazing ✨ but using them comes with a few caveats.


Your client is probably missing most of the actual protocol. There are many capabilities listed in the MCP:

  • Tools, which are like functions.
  • Resources, which are like values.
  • Prompts, which are prompts.

As of writing, almost no MCP client (Cursor, Claude Desktop, Cherry Studio) implements all of them. If you are a Cursor user, you can only use tools.

See the Model Context Protocol documentation to see what your MCP client of choice is lacking.

Admittedly this isn't the biggest deal - most servers just use tools anyway. This may become a bigger deal in future if more servers start to implement more of the protocol.

[!WARNING] This bit isn't done yet! It's currently tools only.

Jailbreak-MCP remedies this by exposing configured resources and prompts as tools, so even the most restrictive implementations are fully usable.


MCP servers fill the context window

The more tools you have configured, the more your MCP servers are taking up of the all-important context window of your agent.

If you wanted to use tools or information from multiple MCP servers at once, your context window becomes very small very fast.

To remedy this, some clients have implemented warnings about having too many tools configured at once. Cursor has implemented a hard restriction of 40 tools, but hides which tools are disabled at any given moment.

Some servers expose many tools at the same time. The GitHub MCP server alone fills the entire Cursor tool cap.

The best thing you can do currently is manually enable and disable which MCP servers you want to have turned on at any given moment.

JailbreakMCP fixes this by providing configurable "modes" which expose only the exact tools and resources you need to do a given task, and tools to switch between modes on the fly.

Installation

Example installation will be assuming you're using Cursor.

  1. Start by making a backup of your current mcp.json file.

[!TIP] The default location is ~/.cursor/jailbreak.mcp.json. To rename your existing Cursor config: mv ~/.cursor/mcp.json ~/.cursor/jailbreak.mcp.json

  1. Create a new mcp.json file where the old one was, with these contents:
json
{
  "mcpServers": {
    "jailbreak": {
      "command": "npx",
      "args": [
        "jailbreak-mcp@latest",
        "/optional/path/to/jailbreak.mcp.json",
      ],
      "env": {
        "CONFIG_PATH": "/optional/path/to/jailbreak.mcp.json"
      }
    }
  }
}

The server will prefer arguments over environment variables over ~/.cursor/jailbreak.mcp.json.

  1. From here, you need to configure a default mode.
json
{
  "mcpServers": {
    ...
  },
  "modes": {
    "default": {
      "everything": {
        "tools": [
          "echo",
          "add",
          "longRunningOperation"
        ],
        "prompts": [
          "simple_prompt",
          "complex_prompt",
          "resource_prompt"
        ],
        "resources": [
          "test://static/resource/1",
          "test://static/resource/2"
        ]
      },
      "time": true
    }
  }
}

Configuration

Modes

Each mode is a whitelist of available servers, and any particular tools/prompts/capabilities to allow.

Modes are key/value pairs under the modes key in the config.

json
{
    "mcpServers": {
        ...
    },
    "modes": {
        "default": {
            ...
        },
        "anotherModeName": {
            ...
        }
    }
}

Under each mode are keys of the names of the servers to allow (the same name as defined under mcpServers).

To allow everything for a given server, set its value to true.

json
{
    "modes": {
        "admin": {
            "email": true,
            "slack": true,
            "time": true,
        }
    }
}

To be more specific, specify which tools, prompts, and resources you want as a list of names or resource URIs.

json
{
    "modes": {
        "admin": {
            "time": true,
            "email": {
                "tools": [
                    "read_email",
                    "send_email",
                    "list_inbox"
                ]
            },
            "slack": {
                "tools": [
                    "slack_list_channels",
                    "slack_get_channel_history",
                    "slack_get_thread_replies",
                    "slack_get_users",
                    "slack_get_user_profile"
                ]
            },
            "everything": {
                "tools": [
                    "echo",
                    "add",
                    "longRunningOperation"
                ],
                "prompts": [
                    "simple_prompt",
                    "complex_prompt",
                    "resource_prompt"
                ],
                "resources": [
                    "test://static/resource/1",
                    "test://static/resource/2"
                ]
            },
        }
    }
}

TODO

Need to:

  • Read in the config file (mcp.json), can take in an argument or a env var
  • Validate it's in the correct format (zod schema)

Startup

  • Load a new client for each MCP entry
  • List all tools
  • Add all those to a register
  • create-jailbreak package for npm init jailbreak setup

Runtime

  • Expose that list via the tools endpoint
  • Take in commands
  • Forward them through to the respective MCP server
  • Forward the results back

Support

  • Update transport command to support Nix, fnm, etc
  • Update connections to pass through MCP host environment (is this needed?)
  • Update tools to support dynamic tools, eg changing

Spice

  • CI & releases
  • Support SSE servers
  • Also load all prompts & resources
  • Optionally exclude or prefer tools
  • Expose all of the other things as well
  • Instructions, dynamic?
    • Templatable help message?

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "kranners-jailbreak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jailbreak-mcp"
      ]
    }
  }
}

Use jailbreak-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once jailbreak-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add jailbreak-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the jailbreak-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "kranners-jailbreak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jailbreak-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the jailbreak-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the jailbreak-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use jailbreak-mcp to help me with this task?
jailbreak-mcp
Sure. I read it.
Here is what I found using jailbreak-mcp.

Frequently asked questions

What is the jailbreak-mcp MCP server used for?

jailbreak-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use jailbreak-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use jailbreak-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use jailbreak-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With jailbreak-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect jailbreak-mcp MCP to TypingMind?

jailbreak-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does jailbreak-mcp MCP provide in TypingMind?

jailbreak-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use jailbreak-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If jailbreak-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇