Sponsored by Deepsite.site

jailbreak-mcp

Created By
kranners8 months ago
Break free of your MCP Client constraints 🦹
Content

jailbreak-mcp

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

WARNING

This tool is actively being developed. Watch out! 🐉

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.

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:
{
  "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.
{
  "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 tools and servers.

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?
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Tavily Mcp
CursorThe AI Code Editor
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
ChatWiseThe second fastest AI chatbot™
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。