F

Farcaster MCP 工具箱

@manimohans/farcaster-mcp
0 Stars 304 次浏览 manimohans 更新于 2026-08-23

提供了与Farcaster网络交互的工具,允许AI模型获取广播、搜索频道和分析内容。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Farcaster MCP 服务器

smithery 徽章

这是一个 MCP 服务器,提供了与 Farcaster 网络(farcaster.xyz)交互的工具,允许 AI 模型获取帖子、搜索频道和分析内容。

功能

  • 获取用户帖子:通过 FID 获取特定 Farcaster 用户的帖子
  • 获取用户名帖子:通过用户名获取特定 Farcaster 用户的帖子
  • 获取频道帖子:获取特定 Farcaster 频道的帖子

安装

# Clone the repository
git clone https://github.com/manimohans/farcaster-mcp.git
cd farcaster-mcp

# Install dependencies
npm install

# Build the project
npm run build

使用

运行服务器

npm start

与 MCP Inspector 一起使用

npx @modelcontextprotocol/inspector node ./build/index.js

与 Claude for Desktop 一起使用

  1. 安装 Claude for Desktop

  2. 打开你的 Claude for Desktop 应用配置文件:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. 添加以下配置:

{
  "mcpServers": {
    "farcaster": {
      "command": "node",
      "args": ["/absolute/path/to/farcaster-mcp/build/index.js"]
    }
  }
}
  1. 重启 Claude for Desktop

与 Smithery 一起使用

此项目包括用于轻松部署的 Smithery 配置文件:

# Install Smithery CLI
npm install -g @smithery/cli

# Deploy to Smithery (specify the client, e.g., claude, cline, windsurf, etc.)
npx @smithery/cli install @manimohans/farcaster-mcp --client claude

可用客户端选项:claude, cline, windsurf, roo-cline, witsy, enconvo

可用工具

get-user-casts

通过 FID (Farcaster ID) 获取特定 Farcaster 用户的帖子。

参数:

  • fid:Farcaster 用户 ID(数字)
  • limit(可选):要返回的最大帖子数(默认值:10)

示例查询:“显示 FID 6846 的最新帖子。”

get-username-casts

通过用户名获取特定 Farcaster 用户的帖子。

参数:

  • username:Farcaster 用户名(字符串)
  • limit(可选):要返回的最大帖子数(默认值:10)

示例查询:“显示用户名 'mani' 的最新帖子。”

get-channel-casts

获取特定 Farcaster 频道的帖子。

参数:

  • channel:频道名称或 URL(字符串)
  • limit(可选):要返回的最大帖子数(默认值:10)

示例查询:“显示 'aichannel' 频道的最新帖子。”

Smithery 配置

此仓库包含了 Smithery 所需的配置文件:

  • smithery.yaml:Smithery 部署的 YAML 配置
  • smithery.json:Smithery 能力的 JSON 配置
  • Dockerfile:Smithery 部署的容器配置

API 细节

此实现使用了 Farcaster Hubble API 来获取数据。

开发

# Run in development mode
npm run dev

许可证

MIT

相关 MCP 服务