Modular
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.
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
Maintainer
Works with
Installation
NPM
npx -y @kimuson/modular-mcpManual Installation
npx -y @kimuson/modular-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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"
}
}
}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.jsonAdd 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"]
}
}
}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.
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.
Modular Alternatives — Similar Developer Tools Servers
Looking for alternatives to Modular? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Modular in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.