MCP Server Manager logo

MCP Server Manager

by Esssport

This repository provides scripts to easily start and manage MCP (Model Context Protocol) servers for development. It includes scripts to start, stop, list, and view logs for MCP servers.

View on GitHub

Last updated: N/A

What is MCP Server Manager?

MCP Server Manager is a collection of shell scripts designed to simplify the process of starting and managing Model Context Protocol (MCP) servers. It provides tools to start servers in the foreground or background, manage running processes, and view logs.

How to use MCP Server Manager?

To use the MCP Server Manager, first ensure that both start-mcp-servers.sh and manage-mcp-servers.sh scripts are executable using chmod +x *.sh. Edit the start-mcp-servers.sh file to add your MCP server commands to the MCP_SERVERS array. Then, use ./start-mcp-servers.sh to start the servers and ./manage-mcp-servers.sh with various commands (e.g., list, stop, logs) to manage them.

Key features of MCP Server Manager

  • Easy server startup

  • Background mode support (iTerm2, Terminal.app, tmux)

  • Server management (list, stop, view logs)

  • Automatic log cleanup

  • Foreground and background log viewing

Use cases of MCP Server Manager

  • Developing MCP applications

  • Testing MCP server configurations

  • Managing multiple MCP servers simultaneously

  • Automating MCP server deployment

FAQ from MCP Server Manager

How do I add a new server?

Edit the start-mcp-servers.sh file and add your server command to the MCP_SERVERS array.

How do I run servers in the background?

Use the --background or -b option with the start-mcp-servers.sh script: ./start-mcp-servers.sh --background.

How do I view the logs for a specific server?

Use the logs command with the server number: ./manage-mcp-servers.sh logs 1.

What happens if a server fails to start?

Check the log files in the current directory for error messages. Also, ensure that the server command is correct and executable.

How does the script detect running processes?

The management script uses pgrep to find running processes based on the server commands defined in start-mcp-servers.sh.