SM

stephenlacy/mathom

分析与监控

本页由 AI 翻译,技术细节请以原文为准。 查看原文

217 stars 12 forks 质量 71 趋势 17MIT

stephenlacy/mathom 是从 https://github.com/stephenlacy/mathom. 导入的 MCP 服务器候选人

概览

stephenlacy/mathom 是从 https://github.com/stephenlacy/mathom. 导入的 MCP 服务器候选人

概述(AI 翻译)

本地优先的MCP平台,支持OAuth2,用于运行和监控你的服务器

我厌倦了没有办法用认证本地运行MCP服务器,无法部署到其他地方。

  • 内置 OAuth2 - 支持支持 OAuth2 的 MCP 客户端
  • 监控 - 实时日志、指标和状态跟踪
  • 仪表盘 - 现代UI,暗/浅主题
  • 快速启动 - 只需将npx替换为mcx

⚡ 快速启动

不到2分钟即可启动:

访问http://localhost:5050,你就准备好了!

特色

核心能力

本地优先架构

  • 本地运行
  • 您的数据和服务器保持私密
  • (AWS/云自部署即将上线…)

实时监控

  • 实时服务器日志
  • 性能指标
  • 基础服务器调试

UI

实时监控仪表盘,带实时指标

光明/暗主题支持

用途

启动你的MCP服务器

自定义 Docker 服务器

Docker 镜像中的 STDIO 服务器可以使用 --docker 标志运行,它们会自动用 mathom-proxy 封装:

克劳德/光标

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mathom

I was tired of not having a way to run my MCP servers locally with auth in a way that I could deploy elsewhere.

  • Built-in OAuth2 - Works with MCP clients that support OAuth2
  • Monitoring - Live logs, metrics, and status tracking
  • Dashboard - Modern UI with dark/light themes
  • Quick Launch - Just replace npx with mcx

⚡ Quick Start

Get up and running in less than 2 minutes:

# Install the CLI
npm install -g mcx

# Clone and start mathom
git clone https://github.com/stephenlacy/mathom.git
cd mathom
./quickstart.sh  # Builds and starts everything

Visit http://localhost:5050 and you’re ready to go!

Features

Core Capabilities

UI

Usage

Launch your MCP Servers

# launch a server by name
mcx my-mcp-server

# launch from npm package
mcx @modelcontextprotocol/server-filesystem

# with custom arguments
mcx my-server -- --custom-arg value

Custom docker servers

STDIO servers in Docker images can be run using the --docker flag, they will get wrapped automatically with the mathom-proxy:

mcx --docker mcp/github-mcp-server -e GITHUB_PERSONAL_ACCESS_TOKEN='ghp_token'

Claude/Cursor

  • Claude: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Cursor: ~/.cursor/mcp.json
{
  "mcpServers": {
    "myServer": {
      "command": "mcx",
      "args": ["my-mcp-server"],
      "env": {
        "MATHOM_URL": "http://localhost:5050"
      }
    },
    "myDockerServer": {
      "command": "mcx",
      "args": ["--docker", "mcp/github-mcp-server", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN=ghp_token"],
    }
  }
}

Use with the Inspector

npx @modelcontextprotocol/inspector mcx @modelcontextprotocol/server-everything

Documentation

Installation

Docker Installation (Recommended)

docker compose up -d

Or use the quickstart script

Manual Installation

  • Docker
  • Go
  • Node.js
  • PostgreSQL
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector mcx @modelcontextprotocol/server-everything
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "myServer": { "command": "mcx", "args": ["my-mcp-server"], "env": { "MATHOM_URL": "http://localhost:5050" } }, "myDockerServer": { "command": "mcx", "args": ["--docker", "mcp/github-mcp-server", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN=ghp_token"], } } }