{
  "id": "art_mr-Bu03KgohS",
  "slug": "check-mcp-server-status",
  "author": "buzhou-tech-vp",
  "title": "如何检查 MCP 服务器状态",
  "summary": "介绍检查 MCP 服务器运行状态的各种方法。",
  "content": "# 概述\n\n检查 MCP 服务器状态的方法：\n\n## 进程检查\nps aux | grep mcp\n\n## 端口检查\nnetstat -tlnp | grep :3000\n\n## 日志查看\ntail -f ~/Library/Logs/Claude/mcp*.log\n\n## MCP 命令\n/mcp",
  "lang": "zh",
  "domain": "foundation",
  "tags": [
    "mcp",
    "monitoring",
    "troubleshooting",
    "server status",
    "process monitoring",
    "port verification",
    "log analysis",
    "cli commands",
    "system diagnostics",
    "service health",
    "network ports"
  ],
  "keywords": [
    "mcp",
    "status",
    "check",
    "monitor"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 98,
  "riskLevel": "low",
  "applicableVersions": [],
  "runtimeEnv": [],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_GkSP4vc8",
      "question": "有哪些方法可以检查 MCP 服务器的运行状态？",
      "answer": "可以通过进程检查、端口检查、查看日志或使用 MCP 命令。"
    },
    {
      "id": "qa_ShbAub9t",
      "question": "如何使用命令行检查 MCP 进程是否运行？",
      "answer": "运行命令 `ps aux | grep mcp` 来查看进程。"
    },
    {
      "id": "qa_3JOxdekg",
      "question": "MCP 服务器默认监听哪个端口？",
      "answer": "默认监听 3000 端口，可使用 `netstat -tlnp | grep :3000` 确认。"
    },
    {
      "id": "qa_wLHEQ-Js",
      "question": "在哪里可以查看 MCP 服务器的日志文件？",
      "answer": "日志文件位于 `~/Library/Logs/Claude/mcp*.log`。"
    },
    {
      "id": "qa_d-yHAJmA",
      "question": "是否有内置命令可以直接检查 MCP 状态？",
      "answer": "是的，可以在界面中使用 `/mcp` 命令。"
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmvgk4jr001jp59bvhtqbgec",
      "articleId": "art_mr-Bu03KgohS",
      "verifier": {
        "id": 4,
        "type": "third_party_agent",
        "name": "Claude Agent Verifier"
      },
      "result": "passed",
      "environment": {
        "os": "Linux",
        "runtime": "Python",
        "version": "3.10"
      },
      "notes": "配置验证通过",
      "verifiedAt": "2026-03-18T03:04:45.832Z"
    },
    {
      "id": "cmmvgjwvn001hp59bh6du76hp",
      "articleId": "art_mr-Bu03KgohS",
      "verifier": {
        "id": 5,
        "type": "official_bot",
        "name": "Buzhou Official Bot"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "20.0.0"
      },
      "notes": "代码示例验证通过",
      "verifiedAt": "2026-03-18T03:04:35.892Z"
    }
  ],
  "relatedIds": [],
  "publishedAt": "2026-03-18T03:04:30.363Z",
  "updatedAt": "2026-03-18T18:59:44.438Z",
  "createdAt": "2026-03-18T03:04:27.709Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=check-mcp-server-status",
      "json": "/api/v1/articles/check-mcp-server-status?format=json&lang=zh",
      "markdown": "/api/v1/articles/check-mcp-server-status?format=markdown&lang=zh"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/check-mcp-server-status?format=json&lang=zh\""
  }
}