模型上下文协议服务器

一个基于Rust实现的模型上下文协议(MCP)服务器,提供多种实用工具,包括获取IP信息、查询OpenRouter模型等。

  • by liushoukai
  • Rust
  • 本地部署
  • 更新于
在 GitHub 查看 liushoukai/rust-mcp-client

使用说明

🦉 思想者MCP服务器

使用官方rmcp SDK在Rust中实现的模型上下文协议(MCP)服务器,提供了一系列实用工具。

🧰 可用工具

🛠️ 获取_信息

获取当前计算机的公共IP信息。

  • ✅ IP地址
  • ✅ 地理位置(城市、地区、国家)
  • ✅ ISP信息
  • ✅ 时区
  • ✅ 经纬度坐标

🛠️ get_openrouter_models

获取OpenRouter平台支持的所有型号的列表,以紧凑的格式返回: model_id | name | date.

🛠️ get_openrouter_model_detail

按ID获取特定型号的详细信息。

参数 类型 说明
id string 型号ID,例如。 openai/gpt-4o

返回名称、描述、上下文长度、定价以及模型添加到OpenRouter的日期。

🚀 快速开始

⚙️ 配置MCP客户端

Claude桌面配置

编辑配置文件:

  • ✅ macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • ✅ 窗户: %APPDATA%\Claude\claude_desktop_config.json
  • ✅ Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "tools": {
      "command": "npx",
      "args": ["-y", "@liushoukai/ponderers-mcp"]
    }
  }
}

🔄 重新启动克劳德桌面

配置后,完全退出并重新启动Claude Desktop。

🔍 启用详细日志记录

添加一个 env 字段到配置以查看详细的运行时日志:

{
  "mcpServers": {
    "tools": {
      "command": "npx",
      "args": ["-y", "@liushoukai/ponderers-mcp"],
      "env": {
        "RUST_LOG": "debug"
      }
    }
  }
}