日本占卜工具

一个基于Ruby on Rails的MCP服务器项目,提供日本占卜工具(御神签和幸运物品)作为MCP工具。

  • by kaibadash
  • HTML
  • 本地部署
  • 更新于
在 GitHub 查看 kaibadash/rails_mcp_example

使用说明

rails_mcp示例

一个使用Ruby on Rails实现MCP服务器的示例项目。

概述

该项目提供日本算命工具(omikuji和幸运物品)作为MCP工具。

可用工具

  • omikuji_tool:绘制幸运单
  • luck_item_tool:获取今天的幸运物品

设置

启动Rails服务器

bundle install
bin/rails s -p 3131

配置MCP客户端

将以下内容添加到您的MCP客户端(Claude Desktop、Cursor等) mcp.json:

{
  "mcpServers": {
    "japanese-fortune-teller": {
      "url": "http://localhost:3131/mcp/messages"
    }
  }
}

用法示例

您可以从MCP客户端发出请求,例如:

Use the japanese-fortune-teller MCP Server to tell the fortune for "kaibadash"