MCP cover image
See in Github
2025-04-06

1

Github Watches

0

Github Forks

0

Github Stars

MCP Server Manager

A backend Python application that serves both a Model Context Protocol (MCP) interface and a FastAPI web interface for managing MCP servers integrated with Claude Desktop.

Overview

MCP Server Manager allows you to:

  • Register and manage MCP servers in a central location
  • Enable/disable MCP servers for use with Claude Desktop
  • Test server commands before registration
  • Restart Claude Desktop after configuration changes
  • Start the FastAPI server directly from Claude via MCP
  • Access functionality via both a web UI and MCP interface

Prerequisites

  • Python 3.13 or higher
  • pip (Python package installer)
  • Claude Desktop (for full functionality)

Installation

Clone the Repository (if applicable)

git clone https://github.com/yourusername/mcp-commander.git
cd mcp-commander/mcp_server_manager

Create a Virtual Environment

# Using venv
python -m venv .venv

# Activate the virtual environment
# On Windows
.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate

Install Dependencies

Choose one of the following methods:

# Using pip with requirements.txt
pip install -r requirements.txt

# OR using pip with pyproject.toml (recommended)
pip install -e .

Running the Application

Web Interface (Recommended)

The web interface provides a user-friendly way to manage your MCP servers.

uvicorn main:app --host 127.0.0.1 --port 8000

Then open your browser and navigate to http://127.0.0.1:8000

  • --host 127.0.0.1: Restricts access to localhost only
  • --host 0.0.0.0: Makes the server accessible from other devices on your network (if needed)
  • --port 8000: The port on which the application will run

MCP Interface (Optional)

If you need to access the MCP functionality directly (e.g., for integration with Claude Desktop):

python mcp_manager/mcp_server.py

The MCP server runs in stdio mode, which means it reads from standard input and writes to standard output. This is the format expected by the MCP protocol.

MCP Tools

The MCP Server Manager provides the following tools via the Model Context Protocol:

  1. restart_claude_desktop - Finds, terminates, and restarts the Claude Desktop application
  2. set_server_enabled_status - Enable or disable an MCP server in Claude Desktop
  3. install_mcp_server - Register a new MCP server configuration
  4. start_fastapi_server - Starts the FastAPI server and opens the default web browser to view the UI

Using the start_fastapi_server Tool

With Claude Desktop, you can start the web interface directly by using the MCP tool:

start_fastapi_server

You can also specify a custom port:

start_fastapi_server port=8080

This will:

  1. Start the FastAPI server in the background
  2. Open your default web browser to the appropriate URL
  3. Allow you to manage your MCP servers through the web interface

Integrating with Claude Desktop

To use the MCP Server Manager with Claude Desktop:

  1. Register your MCP servers using the web interface
  2. Enable the servers you want to use with Claude
  3. Restart Claude Desktop either through the web interface or manually

Note: Claude Desktop will need to be configured to recognize the MCP Server Manager if you want to use its MCP capabilities directly. You can add the following to Claude Desktop's config file:

{
  "mcpServers": {
    "mcp-server-manager": {
      "command": "python",
      "args": ["path/to/mcp_manager/mcp_server.py"]
    }
  }
}

File Structure

  • main.py: FastAPI web application
  • mcp_manager/: Core modules
    • core_logic.py: Shared business logic
    • mcp_server.py: MCP server implementation
  • templates/: HTML templates for the web interface
  • static/: Static assets (CSS, JS)

Development

For development purposes, you may want to run the server with auto-reload:

uvicorn main:app --reload

This will automatically restart the server when changes are detected in the code.

Logging

Logs for the MCP Server Manager are written to:

C:\Users\<username>\AppData\Local\MCPManager\MCPManager\mcp_server.log

Check this file for debugging information if you encounter any issues with the server.

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    3 (1)
    Avatar
    user_EszSNzKT
    2025-04-18

    As an avid user of mcp_server_manager, I can't praise this tool enough. Created by ThomasRohde and available on GitHub, it simplifies server management tasks remarkably. The intuitive interface and robust functionality make handling multiple servers a breeze. If you manage servers regularly, this is an indispensable tool in your arsenal!