mcp-wrap
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-wraprestart server and list available tools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-wrap
An MCP server that wraps another MCP server, exposing tools to manage its lifecycle and observe its protocol traffic. This lets an LLM (e.g. via Claude Code) stop, rebuild, restart, and exercise your MCP server without the agent harness needing to reconnect.
Why
When developing MCP servers with Claude Code, the LLM can edit your server's source code but can't restart the MCP process — that connection is managed by the agent harness. mcp-wrap sits in between: Claude Code connects to mcp-wrap (which stays running), and mcp-wrap manages the actual server as a child process.
Claude Code <--stdio--> mcp-wrap <--stdio--> your MCP server (child process)Typical workflow:
LLM edits your server code
Calls
restart_server(orstop_server+ rebuild +start_server)Calls
get_tools/list_resourcesto discover what's exposedCalls
call_tool/read_resourceto exercise itUses
get_server_stderr,get_notifications, orwait_forto observe behavior
Related MCP server: Multi MCP
Install
git clone https://github.com/megabytefisher/mcp-wrap.git
cd mcp-wrap
npm install
npm run buildUsage
mcp-wrap <command> [args...]mcp-wrap takes the wrapped server's command as its arguments. For example:
mcp-wrap node ./my-server/dist/index.js
mcp-wrap python my_server.py
mcp-wrap ./target/release/my-server --flag valueClaude Code configuration
Add to your project's .mcp.json:
{
"mcpServers": {
"my-server": {
"command": "node",
"args": ["/path/to/mcp-wrap/dist/index.js", "node", "/path/to/my-server/dist/index.js"]
}
}
}Or in Claude Code global settings (~/.claude/settings.json):
{
"mcpServers": {
"my-server": {
"command": "node",
"args": ["/path/to/mcp-wrap/dist/index.js", "node", "/path/to/my-server/dist/index.js"]
}
}
}Tools
Lifecycle
Tool | Description |
| Spawn the wrapped server as a child process and connect to it |
| Stop the wrapped server and show recent stderr |
| Stop then start in one call (convenience for post-rebuild) |
Tool proxy
Tool | Description |
| List the wrapped server's tools with their input schemas |
| Call a tool on the wrapped server by name with arguments |
call_tool accepts name (string) and arguments (object, optional). Arguments are passed through directly — no double-serialization needed.
Resource proxy
Tool | Description |
| List concrete resources exposed by the wrapped server |
| List resource templates exposed by the wrapped server |
| Read a resource by URI |
| Subscribe to updates for a resource URI |
| Unsubscribe from updates for a resource URI |
Resource update notifications arrive via get_notifications (or wait_for for race-sensitive flows).
Observability
Tool | Description |
| Read captured stderr from the wrapped server. With no args, returns the buffer as plain text and clears it. With |
| Read server-initiated MCP notifications ( |
| Block until a matching event arrives or |
Cursored tools return next_seq; pass it back as since_seq on the next call to paginate. Buffers are bounded — dropped / dropped_since_last_call is non-zero when entries were evicted.
Protocol log (debug)
Tool | Description |
| Toggle raw MCP wire-level logging (off by default; verbose) |
| Read raw protocol entries while logging is on. Cursored, with optional |
Only useful for debugging wire-level issues. Disabled by default to keep buffers cheap.
How it works
mcp-wrap is itself an MCP server using stdio transport. It uses the MCP SDK's Client and StdioClientTransport to connect to the wrapped server as a child process. Stderr, notifications, and (optionally) raw protocol traffic are captured into bounded ring buffers.
When the wrapped server crashes unexpectedly, mcp-wrap detects the disconnection and resets its state — subsequent tool calls return a clear "server is not running" error rather than hanging. Per-run buffers (stderr, notifications, protocol log) are reset on every start_server; the protocol-logging on/off flag is preserved across restarts.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/megabytefisher/mcp-wrap'
If you have feedback or need assistance with the MCP directory API, please join our Discord server