mcgravity
McGravity is a tool that integrates multiple MCP servers into a unified service, efficiently managing connections from clients. Currently functioning as a CLI tool, it aims to evolve into a full-featured proxy for MCP servers, enhancing scalability and enabling resource reuse.
GitHub Stars
68
User Rating
Not Rated
Favorites
0
Views
34
Forks
4
Issues
2
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Node.js: 18.0.0以上bun: 最新版Installation
Installation
Prerequisites
Please specify required software and versions:Node.js: 18.0.0 or higher
bun: Latest version
Installation Steps
1. Clone Repository
bash
git clone https://github.com/tigranbs/mcgravity
cd mcgravity
2. Install Dependencies
bash
bun install
3. Build the Project
bash
bun build src/index.ts --compile --outfile mcgravity
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Node.js version and reinstall dependencies.Configuration
Configuration
Basic Configuration
McGravity can be configured using a YAML file. Here is an example configuration:yaml
name: mcgravity
version: 1.0.0
description: A simple MCP server
servers:
echo-server:
url: http://localhost:3000/sse
name: echo-server
version: 1.0.0
description: A simple echo server
tags:
- echo
Examples
Examples
Basic Usage
Here are basic usage examples for the MCP server:Using Command Line
bash
./mcgravity http://mcp1.example.com http://mcp2.example.com
Using with Options
bash
./mcgravity --host localhost --port 3001 http://mcp1.example.com http://mcp2.example.com
Running with Configuration File
bash
./mcgravity --config config.yaml
Use Cases
Manage requests to different AI tools efficiently by using multiple MCP servers.
Improve performance by reducing server response times through load balancing.
Access MCP servers from scripts using the CLI tool.
Deploy McGravity easily using Docker to create a scalable environment.