Enable multiple isolated MCP server instances with automatic restart and flexible JSON configuration
The Multiverse MCP Server is a middleware solution designed to facilitate multiple isolated instances of the same MCP servers, allowing them to coexist independently while maintaining unique namespaces and configurations. This capability makes it an invaluable tool for developers who need to run multiple instances of the same server type (like MySQL or Git) with distinct settings, ensuring that separate contexts or projects can operate seamlessly without conflicts.
The Multiverse MCP Server offers several core features that significantly enhance AI application integration. These include:
Run Multiple Instances: The ability to run multiple instances of the same MCP server type (e.g., mcp-server-mysql
, mcp-server-git
, and mcp-server-filesystem
) independently within isolated universes, each with its own configuration.
Automatic Server Restart: Register your server during development with file watching capability. The Multiverse MCP Server will detect changes in the specified directory and perform a graceful restart, ensuring seamless testing and development.
JSON-based Configuration System: Users can define their setup using a flexible JSON format that supports detailed configurations for each server instance, including command execution, environment variables, path resolution rules, file watching settings, and more.
Each feature is designed to provide robust AI application integration capabilities, making it easier for developers to manage multiple instances of various server types within a single project. The JSON configuration system, in particular, offers flexibility and customization that can accommodate diverse deployment scenarios.
The Multiverse MCP Server leverages Model Context Protocol (MCP) to enable seamless integration between AI applications and data sources or tools. The protocol flow diagram below outlines the fundamental interactions between an AI application, a MCP client, a MCP server, and external resources/tools.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This diagram illustrates the key steps involved in a typical interaction, from an AI application initiating requests through MCP clients and servers to accessing external data sources or tools. The server acts as the intermediary, ensuring that each instance operates independently within its universe while maintaining coherence with the broader MCP framework.
To get started with the Multiverse MCP Server, follow these steps:
claude_desktop_config.json
:
~/Library/Application\ Support/Claude/claude_desktop_config.json
, Windows: C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json
).{
"mcpServers": {
"job-multiverse": {
"command": "npx",
"args": [
"-y",
"@lamemind/mcp-server-multiverse@latest",
"/path/to/your/job-multiverse.json"
]
},
"side-project-multiverse": {
"command": "npx",
"args": [
"-y",
"@lamemind/mcp-server-multiverse@latest",
"/path/to/your/side-project-multiverse.json"
]
}
}
}
This configuration ensures that the Multiverse MCP Server starts when you launch the Claude Desktop application.
The Multiverse MCP Server supports multiple use cases critical to modern AI workflows, including:
mcp-server-mysql
with distinct database configurations can help manage separate projects or environments without conflicts.mcp-server-filesystem
allows developers to control access and operations on files based on the configured root path while maintaining isolation between universes.{
"serverName": "JobMultiverse",
"functionsPrefix": "job",
"servers": [
{
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"DATABASE_NAME": "job_db"
}
},
{
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"DATABASE_NAME": "sideproject_db"
}
}
]
}
{
"serverName": "UvxGitServer",
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/full/path/to/repo"
],
"env": {
"GIT_USER_NAME": "Developer",
"GIT_EMAIL": "[email protected]"
}
}
The Multiverse MCP Server is designed to integrate seamlessly with various MCP clients, including:
The following compatibility matrix provides a clear overview of which server types work with each client:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
The Multiverse MCP Server supports multiple platforms, ensuring compatibility and performance across different environments:
This broad support ensures that developers can use the Multiverse MCP Server in a wide range of development and deployment scenarios without encountering compatibility issues.
Advanced configuration options allow users to tailor their setup to meet specific needs. Key areas include:
Security features, such as access controls and encryption, can be implemented by configuring the appropriate environment variables and specifying secure paths.
mcp-server-mysql
using this server?A1: Yes, you can easily configure multiple instances of mcp-server-mysql
with different settings to manage separate projects or environments without conflicts. Each instance runs in an isolated universe.
A2: The JSON configuration does not significantly impact performance but provides flexibility in managing server configurations and ensuring that each environment is properly isolated and configured for specific tasks.
A3: There are no explicit limits to the number of instances you can run, but practical constraints such as system resources may become a factor.
A4: The Multiverse MCP Server is primarily designed for MCP clients like Claude Desktop. While it supports a range of clients, compatibility may vary depending on the client's capabilities and intended usage.
A5: Ensure that each universe has its own secure environment with appropriate access controls and encryption mechanisms implemented through the JSON configuration to maintain data integrity across different instances.
If you're interested in contributing to or extending this project, follow these guidelines:
git clone <repository-url>
to get the latest code.The Multiverse MCP Server is part of a broader ecosystem that includes various tools, servers, and clients all working together to support AI development and deployment. Staying informed about updates and community contributions can help you build more robust applications.
By following these guidelines and leveraging the capabilities of the Multiverse MCP Server, developers can create highly integrated AI workflows tailored to their specific needs. The JSON configuration system provides a powerful way to customize environments, while compatibility with key MCP clients ensures robust integration across different tools and platforms.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration