Skip to content
/ one-mcp Public

A centralized proxy platform for MCP servers, accessible via a single HTTP server,featuring a web-based management interface.

License

Notifications You must be signed in to change notification settings

burugo/one-mcp

Repository files navigation

English | δΈ­ζ–‡

One MCP

One MCP - A centralized proxy for Model Context Protocol (MCP) services

✨ Manage, monitor, and configure your MCP services from a single interface ✨


Go Report Card Go CI GitHub license

Go React TypeScript Docker

Features β€’ Quick Start β€’ Installation β€’ Configuration β€’ Development β€’ Contributing


Overview

One MCP is a comprehensive management platform for Model Context Protocol (MCP) services. Acting as a centralized proxy, it lets you discover, install, configure, and monitor MCP services from various providers. Built with Go and React, it offers both powerful backend capabilities and an intuitive web interface.

Screenshot

Features

πŸš€ Service Management

  • Install & Configure: Deploy MCP services from marketplace or custom sources
  • Multiple Service Types: Support for stdio, Server-Sent Events (SSE), and streamable HTTP services
  • Environment Management: Secure handling of service environment variables and configurations
  • Health Monitoring: Real-time service health checks and status monitoring

πŸ›’ Service Marketplace

  • Discover Services: Browse and search MCP services from various repositories
  • One-Click Installation: Simple installation process with automatic dependency resolution
  • Custom Services: Create and deploy custom MCP services with flexible configuration options

πŸ“Š Analytics & Monitoring

  • Usage Statistics: Track service utilization and performance metrics
  • Request Analytics: Monitor API requests, response times, and error rates
  • System Health: Comprehensive system status and uptime monitoring

πŸ‘₯ User Management

  • Multi-User Support: Role-based access control with admin and user roles
  • OAuth Integration: Login with GitHub and Google accounts
  • Secure Authentication: Token-based authentication with refresh token support

🌐 Internationalization

  • Multi-Language Support: English and Chinese (Simplified) interface
  • Localized Content: Fully translated user interface and error messages
  • Language Persistence: User language preferences saved across sessions

βš™οΈ Advanced Configuration

  • Environment Variables: Flexible configuration management
  • Database Support: SQLite (default) with MySQL/PostgreSQL support
  • Redis Integration: Optional Redis support for distributed caching
  • Docker Ready: Full Docker support for easy deployment

Screenshot Screenshot

Quick Start

Using Docker (Recommended)

# Run with Docker
docker run --name one-mcp -d \
  --restart always \
  -p 3000:3000 \
  -v $(pwd)/data:/data \
  buru2020/one-mcp:latest

# Access the application
open http://localhost:3000

Manual Installation

# Clone the repository
git clone https://github.com/burugo/one-mcp.git
cd one-mcp

# Set up environment
cp .env_example .env

bash ./run.sh

Default Login: Username root, Password 123456

Installation

Prerequisites

  • Go: Version 1.19 or later
  • Node.js: Version 16 or later
  • Database: SQLite (default), MySQL, or PostgreSQL
  • Redis: Optional

Environment Configuration

Create a .env file from the template:

cp .env_example .env

Key configuration options:

# Server Configuration
PORT=3000

# Database (SQLite is default, MySQL and PostgreSQL are supported)
# SQLite(default)
# SQLITE_PATH=/data/one-mcp.db
# MySQL:
# SQL_DSN=root:password@tcp(localhost:3306)/one_mcp
# PostgreSQL:
# SQL_DSN=postgres://username:password@localhost/database_name?sslmode=disable

# Redis (optional, replace local cache for production environment)
REDIS_CONN_STRING=redis://localhost:6379

# GitHub API (optional, for querying npm's github homepage star count, without this, there will be rate limit issues)
GITHUB_TOKEN=your-github-token

Docker Deployment

# Build the Docker image
docker build -t one-mcp .

# Run with docker-compose (recommended)
docker-compose up -d

# Or run directly
docker run -d \
  --name one-mcp \
  -p 3000:3000 \
  -v ./data:/data \
  -e PORT=3000 \
  one-mcp

Manual Deployment

  1. Build the application:

    ./deploy/build.sh
  2. Run the server:

    ./one-mcp --port 3000
  3. Access the application: Open http://localhost:3000 in your browser

Configuration

OAuth Setup

GitHub OAuth

  1. Create a GitHub OAuth App at https://github.com/settings/applications/new
  2. Set Homepage URL: http://your-domain.com
  3. Set Authorization callback URL: http://your-domain.com/oauth/github
  4. Configure in the application preferences

Google OAuth

  1. Create credentials at https://console.developers.google.com/
  2. Set Authorized JavaScript origins: http://your-domain.com
  3. Set Authorized redirect URIs: http://your-domain.com/oauth/google
  4. Configure in the application preferences

Database Configuration

SQLite (Default)

No additional configuration required. Database file is created at ./data/one-mcp.db.

MySQL

SQL_DSN=username:password@tcp(localhost:3306)/database_name

PostgreSQL

SQL_DSN=postgres://username:password@localhost/database_name?sslmode=disable

API Documentation

The application provides RESTful APIs for all functionality:

  • Base URL: http://localhost:3000/api
  • Authentication: Bearer token (obtained via login)
  • Content-Type: application/json

Key Endpoints

  • POST /api/auth/login - User authentication
  • GET /api/services - List installed services
  • POST /api/services - Install new service
  • GET /api/market/search - Search marketplace
  • GET /api/analytics/usage - Usage statistics

Development

Development Environment

# Start development servers
./run.sh

# This will start:
# - Backend server on :3000
# - Frontend dev server on :5173 (with hot reload)

Project Structure

one-mcp/
β”œβ”€β”€ backend/         # Go backend code
β”œβ”€β”€ frontend/        # React frontend code  
β”œβ”€β”€ data/           # Database and uploads
β”œβ”€β”€ main.go         # Application entry point
β”œβ”€β”€ build.sh        # Production build script
└── run.sh          # Development script

Testing

# Frontend tests
cd frontend && npm test

# Backend tests
go test ./...

For detailed development instructions, see DEVELOPMENT.md.

Contributing

We welcome contributions! Please see our contributing guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow Go and TypeScript best practices
  • Add tests for new functionality
  • Update documentation as needed
  • Ensure all tests pass before submitting

Roadmap

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.


⭐ Star this project if you find it helpful!

Made with ❀️ by the One MCP team

About

A centralized proxy platform for MCP servers, accessible via a single HTTP server,featuring a web-based management interface.

Topics

Resources

License

Stars

Watchers

Forks