Farcaster MCP Server

Farcaster MCP Server

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

社交媒体
访问服务器

Tools

get-user-casts

Get casts from a specific Farcaster user by FID

get-channel-casts

Get casts from a specific Farcaster channel

get-username-casts

Get casts from a specific Farcaster username

README

Farcaster MCP 服务器

smithery badge

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

<a href="https://glama.ai/mcp/servers/koo5epnlc7"> <img width="380" height="200" src="https://glama.ai/mcp/servers/koo5epnlc7/badge" alt="Farcaster Server MCP server" /> </a>

功能

  • 获取用户 Casts: 通过 FID 检索特定 Farcaster 用户的 casts
  • 获取用户名 Casts: 通过用户名检索特定 Farcaster 用户的 casts
  • 获取频道 Casts: 检索特定 Farcaster 频道的 casts

安装

# 克隆仓库
git clone https://github.com/manimohans/farcaster-mcp.git
cd farcaster-mcp

# 安装依赖
npm install

# 构建项目
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 配置文件,方便部署:

# 安装 Smithery CLI
npm install -g @smithery/cli

# 部署到 Smithery (指定客户端,例如 claude, cline, windsurf, 等等)
npx @smithery/cli install @manimohans/farcaster-mcp --client claude

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

可用工具

get-user-casts

通过用户的 FID (Farcaster ID) 检索特定 Farcaster 用户的 casts。

参数:

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

示例查询: "Show me the latest casts from FID 6846." (显示 FID 6846 的最新 casts。)

get-username-casts

通过用户名检索特定 Farcaster 用户的 casts。

参数:

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

示例查询: "Show me the latest casts from username 'mani'." (显示用户名 'mani' 的最新 casts。)

get-channel-casts

检索特定 Farcaster 频道的 casts。

参数:

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

示例查询: "Show me the latest casts from the 'aichannel' channel." (显示 'aichannel' 频道的最新 casts。)

Smithery 配置

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

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

API 详情

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

开发

# 在开发模式下运行
npm run dev

许可证

MIT

推荐服务器

@wopal/mcp-server-hotnews

@wopal/mcp-server-hotnews

一个模型上下文协议服务器,提供来自中国主要社交平台和新闻网站的实时热点话题。

精选
actors-mcp-server

actors-mcp-server

使用 Apify 提供的 3000 多个预构建的云工具(称为 Actors),从网站、电子商务平台、社交媒体、搜索引擎、地图等提取数据。

官方
TypeScript
mcp-maigret

mcp-maigret

Maigret 的 MCP 服务器,Maigret 是一款强大的开源情报 (OSINT) 工具,可从各种公共来源收集用户帐户信息。此服务器提供用于在社交网络上搜索用户名和分析 URL 的工具。

本地
JavaScript
X(Twitter) MCP Server

X(Twitter) MCP Server

一个 MCP 服务器,允许 Claude 直接通过聊天界面创建、管理和发布 X/Twitter 帖子。

本地
Python
Twitter MCP Server

Twitter MCP Server

通过模型上下文协议启用与 Twitter 的交互,允许大型语言模型发布推文、搜索推文和回复推文。

TypeScript
NeoDB MCP Server

NeoDB MCP Server

提供与社交图书编目服务 NeoDB 交互的功能,通过其 API 获取用户信息、搜索图书和检索详细图书信息。

Python
social-media-mcp

social-media-mcp

一个用于管理社交媒体帖子的模型上下文协议 (MCP) 服务器,目前支持 X(前身为 Twitter)。

JavaScript
X MCP Server

X MCP Server

用于 X (Twitter) 集成的服务器,提供阅读时间线和参与推文的工具。专为与 Claude 桌面应用程序一起使用而设计。

JavaScript
Nostr MCP Server

Nostr MCP Server

一个模型上下文协议(MCP)服务器,使人工智能模型能够与 Nostr 网络互动,从而促进笔记发布和与言论自由协议的交互。

TypeScript
Beyond MCP Server

Beyond MCP Server

一个可扩展的模型上下文协议服务器,为大型语言模型提供对社交平台数据(目前为 Farcaster)和链上数据的标准化访问。

TypeScript