Modular

v0.0.10Developer Toolsstable

A Model Context Protocol (MCP) proxy server that enables efficient management of large tool collections across multiple MCP servers by grouping them and loading tool schemas on-demand.

claudeclaude-codecodexllmmcp
Share:
50
Stars
0
Downloads
0
Weekly
0/5

What is Modular?

Modular is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) proxy server that enables efficient management of large tool collections across multiple mcp servers by grouping them and loading tool schemas on-demand.

A Model Context Protocol (MCP) proxy server that enables efficient management of large tool collections across multiple MCP servers by grouping them and loading tool schemas on-demand.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol (MCP) proxy server that enables eff

Use Cases

MCP proxy for large tool collections
On-demand schema loading and context optimization
d-kimuson

Maintainer

LicenseMIT
Languagetypescript
Versionv0.0.10
UpdatedApr 17, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @kimuson/modular-mcp

Manual Installation

npx -y @kimuson/modular-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Modular

Modular MCP is a proxy server that solves the context-window bloat problem that comes with connecting many MCP servers to an AI assistant. Instead of registering hundreds of tool schemas upfront, it groups tools from multiple upstream MCP servers into named modules and exposes only two lightweight meta-tools to the LLM: one to retrieve the schema for a specific group on demand, and one to call a tool within a group. This dramatically reduces token usage and keeps the AI's context focused. Developers managing large tool collections across Playwright, databases, file systems, and cloud APIs benefit the most.

Prerequisites

  • Node.js 18+ installed (for npx)
  • A modular-mcp.json configuration file listing your upstream MCP servers
  • The upstream MCP servers you want to group must be individually installable
  • An MCP client such as Claude Desktop, Cursor, or VS Code with MCP support
1

Create a modular-mcp.json configuration file

Create a JSON file that lists your upstream MCP servers, grouped by logical purpose. Each server entry needs a description (shown to the LLM), and the command/args to launch it. Use ${VAR} syntax for environment variable interpolation.

{
  "$schema": "https://raw.githubusercontent.com/d-kimuson/modular-mcp/refs/heads/main/config-schema.json",
  "mcpServers": {
    "playwright": {
      "description": "Browser automation tools for web scraping and UI testing",
      "command": "npx",
      "args": ["@playwright/mcp"],
      "env": {},
      "type": "stdio"
    },
    "filesystem": {
      "description": "Read and write files on the local filesystem",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
      "env": {},
      "type": "stdio"
    }
  }
}
2

Test the modular-mcp server locally

Run the server pointing at your config file to verify it starts without errors. The server will initialize connections to all configured upstream servers.

npx -y @kimuson/modular-mcp ./modular-mcp.json
3

Add modular-mcp to your MCP client configuration

Open your MCP client config (e.g. claude_desktop_config.json) and add a single entry for modular-mcp, pointing to your config file. This replaces the individual upstream server entries.

{
  "mcpServers": {
    "modular": {
      "command": "npx",
      "args": ["-y", "@kimuson/modular-mcp", "/absolute/path/to/modular-mcp.json"]
    }
  }
}
4

Restart your MCP client

Restart Claude Desktop or your chosen client. It will now see only two tools from modular-mcp: 'get-modular-tools' and 'call-modular-tool'. The LLM fetches group schemas on demand rather than loading everything upfront.

5

Ask the AI to list available tool groups

Prompt the AI to discover what groups are available. It will call get-modular-tools to retrieve schemas for the requested group and then use call-modular-tool to execute actions.

Modular Examples

Client configuration

Claude Desktop configuration using modular-mcp as a proxy for multiple upstream servers.

{
  "mcpServers": {
    "modular": {
      "command": "npx",
      "args": ["-y", "@kimuson/modular-mcp", "/Users/yourname/.config/modular-mcp.json"]
    }
  }
}

Prompts to try

Example prompts that demonstrate the on-demand tool loading behavior of modular-mcp.

- "What tool groups do you have access to?"
- "Use the playwright tools to navigate to https://example.com and take a screenshot"
- "Using the filesystem group, list all files in /tmp"
- "Call the database tool to run a SELECT query on the users table"

Troubleshooting Modular

Upstream server fails to initialize on startup

Each upstream MCP server must be independently installable. Run the command from each server entry manually in your terminal to verify it starts correctly before adding it to modular-mcp.json.

Environment variable substitution not working

Use ${VAR} syntax with curly braces — plain $VAR is not supported. Verify the variable is exported in your shell environment before starting the MCP client.

AI cannot find a tool in a specific group

The LLM must first call get-modular-tools with the group name to load its schema before calling tools in that group. Prompt it explicitly to 'load the playwright tools' first if it seems unaware of them.

Frequently Asked Questions about Modular

What is Modular?

Modular is a Model Context Protocol (MCP) server that model context protocol (mcp) proxy server that enables efficient management of large tool collections across multiple mcp servers by grouping them and loading tool schemas on-demand. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Modular?

Install via npm with the command: npx -y @kimuson/modular-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Modular?

Modular works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Modular free to use?

Yes, Modular is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "modular": { "command": "npx", "args": ["-y", "@kimuson/modular-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Modular?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides