MCPDog 标志

MCPDog

社区
kinhunt

🐕 Universal MCP Server Manager - Configure once, manage multiple MCP servers through a single interface. Perfect for Claude Desktop, Claude Code, Cursor, Gemini CLI & AI assistants. Web dashboard, auto-detection, unified proxy layer.

发布者kinhunt
代码仓库mcpdog
语言TypeScript
复刻数
4
星标数
20
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    MCPDog 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 20 个星标和 4 个复刻。

MCPDog 🐕

Universal MCP Server Manager - Configure Once, Manage Everything!

License: MIT Node.js

MCPDog is a powerful MCP (Model Context Protocol) server manager that allows you to use multiple MCP servers through a single interface. Perfect for MCP clients like Claude Desktop, Cursor, and other AI assistants that support MCP.

🏗️ Architecture Overview

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   MCP Client:   │    │   MCP Client:   │    │   MCP Client:   │
│     (Claude)    │    │    (Cursor)     │    │   (Gemini CLI)  │
└─────────┬───────┘    └─────────┬───────┘    └─────────┬───────┘
          │                      │                      │
          └──────────────────────┼──────────────────────┘
                                 │
                    ┌─────────────▼─────────────┐
                    │         MCPDog            │
                    │   (Single Entry Point)    │
                    └────────────┬──────────────┘
                                 │
          ┌──────────────────────┼──────────────────────┐
          │                      │                      │
    ┌─────▼─────┐         ┌──────▼──────┐         ┌─────▼─────┐
    │MCP Server:│         │ MCP Server: │         │MCP Server:│
    │  GitHub   │         │   Memory    │         │ Puppeteer │
    └───────────┘         └─────────────┘         └───────────┘

Key Benefits of This Architecture:

  • 🔗 One-Time Setup: Configure MCPDog once, use all servers
  • 🔄 Unified Interface: All MCP servers appear as one server to clients
  • ⚡ Smart Routing: MCPDog routes tool calls to the appropriate server
  • 🌐 Protocol Flexibility: Supports stdio, HTTP SSE, and Streamable HTTP for both client and server connections
  • 📊 Centralized Management: Monitor and manage all servers from web dashboard
  • 🛡️ Fault Tolerance: If one server fails, others continue working
  • 🎯 Simplified Workflow: No need to configure each server separately in your client

🎯 What MCPDog Does

MCPDog acts as a proxy layer that combines multiple MCP servers into one unified interface. Instead of configuring each MCP server separately in your client, you configure MCPDog once and it manages all your servers for you.

Key Benefits

  • 🔄 Single Configuration - Configure once, use many servers
  • 🌐 Web Dashboard - Manage servers visually through web interface
  • ⚡ Auto-Detection - Automatically detects optimal protocols for each server
  • 🔧 Easy Management - Add, remove, and configure servers via CLI or web
  • 📊 Real-time Monitoring - See server status and tool availability in real-time
  • 🌍 Multiple Transports - Support for both stdio and HTTP-based communication

🚀 Quick Start

Choose the deployment method that best fits your needs:

Prerequisites

  • Node.js >= 18
  • An MCP client (Claude Desktop, Cursor, etc.)

📋 Three Deployment Options

1. 🏠 Local Development (Simplest - Recommended)

Perfect for local development and personal use. MCPDog runs automatically when your MCP client starts.

Step 1: Configure your MCP client (Claude Desktop/Cursor)

json
{
  "mcpServers": {
    "mcpdog": {
      "command": "npx",
      "args": ["mcpdog@latest"]
    }
  }
}

Step 2: Open dashboard to add MCP servers

  • Visit http://localhost:38881 when MCPDog is running
  • Use the web interface to add and configure your MCP servers
  • Configuration saved to ~/.mcpdog/mcpdog.config.json

That's it! MCPDog starts automatically with your MCP client and manages all your servers.


2. 🐳 Local Docker (Controlled Environment)

Run MCPDog in a Docker container for isolated, controlled environments without authentication.

Step 1: Build and start MCPDog container

bash
# Build the image (this may take a few minutes)
docker build -t mcpdog .

# Start the container with proper config mounting
docker run -d --name mcpdog \
  -p 38881:38881 -p 4000:4000 \
  -v ~/.mcpdog:/home/appuser/.mcpdog \
  mcpdog

# Check container status and logs
docker ps --filter name=mcpdog
docker logs -f mcpdog --tail 20

Important: The container expects the config file at /home/appuser/.mcpdog/mcpdog.config.json. The volume mount -v ~/.mcpdog:/home/appuser/.mcpdog ensures your local config directory is properly mapped to the container's expected location.

Step 2: Configure your MCP client to use HTTP transport

json
{
  "mcpServers": {
    "mcpdog-http": {
      "type": "streamable-http",
      "url": "http://localhost:4000"
    }
  }
}

Step 3: Manage via web dashboard

  • Visit http://localhost:38881 to configure servers
  • No authentication required for local Docker setup

3. ☁️ Cloud Deployment

Deploy MCPDog to the cloud for access across different development environments with authentication.

Step 1: Deploy container to cloud with authentication

bash
# Build the image
docker build -t mcpdog .

# Deploy to cloud
docker run -d --name mcpdog-cloud \
  -p 38881:38881 -p 4000:4000 \
  -e MCPDOG_AUTH_TOKEN=your_secure_token_here \
  -v /path/to/config:/home/appuser/.mcpdog \
  mcpdog

Step 2: Configure your MCP client with authentication

json
{
  "mcpServers": {
    "mcpdog-http": {
      "type": "streamable-http",
      "url": "https://your-cloud-domain.com:4000",
      "headers": {
        "Authorization": "Bearer your_secure_token_here"
      }
    }
  }
}

Step 3: Access authenticated web dashboard

  • Visit https://your-cloud-domain.com:38881
  • Login with your authentication token
  • Manage servers across all your development environments

🌐 Web Dashboard Features

Once MCPDog is running (any deployment method), use the web dashboard to:

  • Add new MCP servers with auto-detection
  • Monitor server status in real-time
  • Enable/disable tools as needed
  • View server logs and performance metrics
  • Generate client configurations for easy copy-paste setup
  • Export configurations for team sharing

🎯 Choose Your Method

MethodBest ForSetup ComplexitySecurity
Local DevelopmentPersonal use, quick start⭐ SimpleLocal only
Local DockerIsolated environments, testing⭐⭐ MediumContainerized
Cloud DeploymentTeam use, multi-environment⭐⭐⭐ AdvancedAuthenticated

🎯 Configure Once, Manage Everything!

📖 Usage Guide

Managing Servers

List All Servers

bash
npx mcpdog@latest config list

Add a New Server

bash
# Basic server with auto-detection
npx mcpdog@latest config add my-server "npx @some/mcp-server@latest" --auto-detect

# HTTP server
npx mcpdog@latest config add api-server https://api.example.com --transport streamable-http

# With custom timeout
npx mcpdog@latest config add slow-server "npx @slow/mcp-server@latest" --timeout 60000

Update Server Configuration

bash
npx mcpdog@latest config update my-server --timeout 45000 --description "Updated description"

Remove a Server

bash
npx mcpdog@latest config remove old-server

Show Server Details

bash
npx mcpdog@latest config show my-server

Server Management Commands

Check Status

bash
npx mcpdog@latest status

Detect Protocols

bash
# Detect for all servers
npx mcpdog@latest detect --all

# Detect for specific server
npx mcpdog@latest detect my-server

Optimize Performance

bash
# Preview optimizations
npx mcpdog@latest optimize --all --preview

# Apply optimizations
npx mcpdog@latest optimize --all --apply

Run Diagnostics

bash
# Health check
npx mcpdog@latest diagnose --health-check

# Auto-fix issues
npx mcpdog@latest diagnose --fix

Daemon Management

Start Daemon

bash
# Start with default settings
npx mcpdog@latest daemon start

# Start with custom web port
npx mcpdog@latest daemon start --web-port 38881

# Start in background
npx mcpdog@latest daemon start --background

Stop Daemon

bash
npx mcpdog@latest daemon stop

Check Daemon Status

bash
npx mcpdog@latest daemon status

🌐 Web Dashboard

The web dashboard provides a visual interface for managing your MCP servers:

Features

  • Server Status - Real-time connection status and tool counts
  • Tool Management - Enable/disable individual tools
  • Configuration Editor - Edit server settings in the browser
  • Live Logs - View real-time server logs
  • Performance Metrics - Monitor response times and errors
  • Client Config Generator - Generate configurations for your MCP client

Access Dashboard

  1. Start the daemon: npx mcpdog@latest daemon start --web-port 38881
  2. Open http://localhost:38881 in your browser
  3. Manage your servers visually

Note: The daemon will continue running in the background. To stop it, use npx mcpdog@latest daemon stop.

🔧 Configuration

Configuration Files

MCPDog uses configuration files to store server settings:

  • Default: ~/.mcpdog/mcpdog.config.json (recommended)
  • Local: ./mcpdog.config.json
  • Custom: Specify with --config flag

Tip: The default configuration file is stored in the ~/.mcpdog/ directory:

  • macOS/Linux: /Users/username/.mcpdog/
  • Windows: C:\Users\username\.mcpdog\

This is the recommended location for storing your server configurations across all platforms.

Configuration Format

json
{
  "version": "2.0.0",
  "servers": {
    "playwright": {
      "name": "playwright",
      "enabled": true,
      "transport": "stdio",
      "command": "npx",
      "args": ["@playwright/mcp@latest"],
      "timeout": 30000,
      "retries": 3,
      "toolsConfig": {
        "mode": "all"
      }
    }
  }
}

🛠️ Supported Transport Protocols

MCPDog supports multiple transport protocols for both client connections and server connections:

Client Connection Protocols

stdio (default)

  • Standard input/output communication
  • Perfect for traditional MCP clients (Claude Desktop, Cursor)
  • Direct process communication with lowest latency
  • Recommended for most use cases
bash
# Start with stdio (default)
npx mcpdog@latest

# Or explicitly specify stdio
npx mcpdog@latest --transport stdio

Streamable HTTP

  • HTTP-based JSON-RPC communication
  • Compatible with web-based and HTTP-capable clients
  • CORS-enabled for browser access
  • Health check endpoint included
bash
# Start HTTP server on default port 4000
npx mcpdog@latest --transport streamable-http

# Start HTTP server on custom port
npx mcpdog@latest --transport streamable-http --port 8080

# Or using proxy command
npx mcpdog@latest proxy --transport streamable-http --port 4000

HTTP Endpoints:

  • GET / - Health check endpoint
  • POST / - MCP JSON-RPC endpoint

New Unified Commands (v2.0.17+)

The new start command provides a unified way to launch all MCPDog services:

bash
# Start everything: stdio + HTTP + dashboard
npx mcpdog@latest start

# Customize ports  
npx mcpdog@latest start --dashboard-port 3001 --mcp-http-port 4001

# Only specific services
npx mcpdog@latest start --stdio-only      # stdio + dashboard
npx mcpdog@latest start --http-only       # HTTP + dashboard
npx mcpdog@latest start --no-dashboard    # transports only

Server Connection Protocols (for connecting to MCP servers)

stdio

  • Direct process communication
  • Best for local servers
  • Lowest latency

HTTP SSE (Server-Sent Events)

  • Real-time streaming
  • Good for remote servers
  • Browser-compatible

Streamable HTTP

  • HTTP-based streaming
  • Compatible with most HTTP clients
  • Good for cloud services

📊 Troubleshooting

Known Issues

Playwright MCP Compatibility

⚠️ Known Issue: Playwright MCP server (@playwright/mcp) does not work reliably with MCPDog's stdio subprocess environment. This is due to Playwright's internal behavior when detecting non-interactive environments, causing it to enter "silent mode" and preventing proper tool execution.

Workaround: Use Playwright MCP directly if browser automation is needed, or consider alternative browser automation servers like @browsermcp/mcp which are compatible with MCPDog.

Root Cause: Playwright detects the subprocess execution environment and disables its core functionality, resulting in tool call timeouts despite successful MCP protocol handshakes.

Common Issues

Server Not Starting

bash
# Check server status
npx mcpdog@latest status

# Run diagnostics
npx mcpdog@latest diagnose --health-check

# Check logs
npx mcpdog@latest daemon logs

Tools Not Available

bash
# Detect protocols
npx mcpdog@latest detect --all

# Check tool availability
npx mcpdog@latest config show my-server

Connection Issues

bash
# Test server connection
npx mcpdog@latest diagnose --connectivity

# Auto-fix issues
npx mcpdog@latest diagnose --fix

Getting Help

📄 License

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


MCPDog - Your loyal companion for MCP server management! 🐕🦴

"Good dog! Now fetch me that perfect MCP configuration!"

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "kinhunt-mcpdog": {
      "command": "npx",
      "args": [
        "-y",
        "mcpdog"
      ]
    }
  }
}

将 MCPDog MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MCPDog 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 MCPDog 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 MCPDog MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "kinhunt-mcpdog": {
      "command": "npx",
      "args": [
        "-y",
        "mcpdog"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 MCPDog MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 MCPDog MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCPDog 帮我完成这项任务吗?
MCPDog
当然,我看过了。
以下是我使用 MCPDog 得到的结果。

常见问题

MCPDog MCP 服务器有什么用途?

MCPDog 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MCPDog MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 MCPDog。

为什么在 TypingMind 中使用 MCPDog MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 MCPDog 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MCPDog MCP 连接到 TypingMind?

MCPDog 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

MCPDog MCP 在 TypingMind 中提供哪些工具?

MCPDog 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MCPDog MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 MCPDog 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇