Skip to main content
Glama
mcp-server-wrapper

mcp-server-wrapper

by veithly

MCP Server Wrapper

A meta-MCP server that dynamically invokes any MCP server without restarting Claude Code. Add, remove, and invoke MCP servers on-the-fly.

Features

  • Dynamic Server Management: Add/remove MCP servers at runtime

  • Multiple Transports: Support for stdio, SSE, and HTTP streaming

  • Persistent Configuration: Server configs saved to disk

  • Connection Pooling: Efficient connection reuse

  • Zero Restart: No need to restart Claude Code when adding new MCPs

Related MCP server: MCP Installer

Installation

npx mcp-server-wrapper

Via Claude Code

claude mcp add mcp-wrapper -- npx mcp-server-wrapper

Manual Configuration

Add to your Claude Code configuration (~/.claude.json):

{
  "mcpServers": {
    "mcp-wrapper": {
      "command": "npx",
      "args": ["mcp-server-wrapper"]
    }
  }
}

Tools

mcp_list_servers

List all registered MCP servers and their connection status.

mcp_add_server

Add a new MCP server configuration.

Parameters:

  • id (required): Unique identifier

  • name (required): Human-readable name

  • transport (required): stdio, sse, or http-stream

  • command: Command for stdio transport

  • args: Command arguments for stdio

  • url: URL for SSE/HTTP transport

  • env: Environment variables

  • headers: HTTP headers

  • enabled: Enable/disable server

  • persist: Save to config file (default: true)

Example - stdio:

{
  "id": "context7",
  "name": "Context7",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "@upstash/context7-mcp@latest"]
}

Example - HTTP stream:

{
  "id": "deepwiki",
  "name": "Deepwiki",
  "transport": "http-stream",
  "url": "https://mcp.deepwiki.com/mcp"
}

mcp_remove_server

Remove an MCP server configuration.

Parameters:

  • server (required): Server ID to remove

  • persist: Remove from config file (default: true)

mcp_list_tools

List available tools from an MCP server.

Parameters:

  • server: Server ID (lists all if not specified)

  • pattern: Filter tools by name pattern

mcp_invoke

Invoke any tool from any registered MCP server.

Parameters:

  • server (required): Server ID

  • tool (required): Tool name

  • arguments: Tool arguments

  • timeout: Timeout in milliseconds

Usage Examples

Add and use Context7

1. mcp_add_server: id=context7, transport=stdio, command=npx, args=["-y", "@upstash/context7-mcp@latest"]
2. mcp_list_tools: server=context7
3. mcp_invoke: server=context7, tool=resolve-library-id, arguments={libraryName: "react"}

Add and use Deepwiki

1. mcp_add_server: id=deepwiki, transport=http-stream, url=https://mcp.deepwiki.com/mcp
2. mcp_invoke: server=deepwiki, tool=ask_question, arguments={repoName: "facebook/react", question: "What is useEffect?"}

Supported Transports

Transport

Description

Use Case

stdio

Standard I/O

Local MCP servers (npx, uvx)

sse

Server-Sent Events

Legacy remote servers

http-stream

HTTP Streaming

Modern remote servers

Configuration File

Server configurations are persisted to:

  • Windows: %USERPROFILE%\Documents\Project\MCP\mcp-wrapper\config\servers.json

  • macOS/Linux: ~/Documents/Project/MCP/mcp-wrapper/config/servers.json

Development

# Clone repository
git clone https://github.com/veithly/mcp-server-wrapper.git
cd mcp-server-wrapper

# Install dependencies
pnpm install

# Build
pnpm run build

# Development mode
pnpm run dev

Requirements

  • Node.js >= 18

  • Claude Code or any MCP-compatible client

License

MIT

Author

Rick (veithly@live.com)

Available Tools

5 tools
mcp_add_serverA

Add a new MCP server configuration. Use this to register MCP servers that can then be invoked via mcp_invoke.

Inputs: id (required), name (required), transport (required), cwd, +9 more.

mcp_invokeA

Invoke any tool from any registered MCP server. First use mcp_list_servers to see available servers and mcp_list_tools to see available tools.

Inputs: tool (required), server (required), timeout, arguments.

mcp_list_serversA

List all registered MCP servers and their connection status

Inputs: no named parameters.

mcp_list_toolsA

List available tools from MCP servers. If server is specified, connects to that server and lists its tools. Otherwise lists tools from all connected servers.

Inputs: server, pattern.

mcp_remove_serverB

Remove an MCP server configuration

Inputs: server (required), persist.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct purpose: adding, listing, invoking, and removing servers or tools. There is no ambiguity between them.

    Naming Consistency5/5

    All tools follow a consistent pattern: mcp_<verb>_<object> (e.g., mcp_add_server, mcp_invoke, mcp_list_servers). The naming is predictable and uniform.

    Tool Count5/5

    With 5 tools, the set is well-scoped for managing MCP server configurations and tool invocation. It is neither too sparse nor too heavy.

    Completeness4/5

    The tools cover the core lifecycle: add, list, invoke, and remove. However, there is no update or get detailed server info, which may be a minor gap for maintenance tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP server that builds itself by creating new tools as needed based on user requests (Requires restart of Claude Desktop to use newly created tools).
      4
      25
      -
    • A
      license
      B
      quality
      D
      maintenance
      A meta-server that allows Claude to install other MCP servers from npm or PyPi, enabling easy expansion of Claude's capabilities with external tools.
      2
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      A meta-MCP server that manages and aggregates other MCP servers, enabling LLMs to dynamically extend their own capabilities by searching for, adding, and configuring tool servers.
      16
      143
      AGPL 3.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables dynamic loading, hot-reloading, and orchestration of MCP servers without restarting Claude Code, allowing programmatic tool calling and workflow automation across multiple servers.
      2
      -