Farcaster网络
STDIOFarcaster网络交互和内容分析工具
Farcaster网络交互和内容分析工具
An MCP server that provides tools to interact with the Farcaster network (farcaster.xyz), allowing AI models to fetch casts, search channels, and analyze content.
# 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
npx @modelcontextprotocol/inspector node ./build/index.js
Install Claude for Desktop
Open your Claude for Desktop App configuration at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{ "mcpServers": { "farcaster": { "command": "node", "args": ["/absolute/path/to/farcaster-mcp/build/index.js"] } } }
This project includes Smithery configuration files for easy deployment:
# 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
Available client options: claude, cline, windsurf, roo-cline, witsy, enconvo
Retrieves casts from a specific Farcaster user by their FID (Farcaster ID).
Parameters:
fid
: Farcaster user ID (number)limit
(optional): Maximum number of casts to return (default: 10)Example query: "Show me the latest casts from FID 6846."
Retrieves casts from a specific Farcaster user by their username.
Parameters:
username
: Farcaster username (string)limit
(optional): Maximum number of casts to return (default: 10)Example query: "Show me the latest casts from username 'mani'."
Retrieves casts from a specific Farcaster channel.
Parameters:
channel
: Channel name or URL (string)limit
(optional): Maximum number of casts to return (default: 10)Example query: "Show me the latest casts from the 'aichannel' channel."
This repository includes the necessary configuration files for Smithery:
smithery.yaml
: YAML configuration for Smithery deploymentsmithery.json
: JSON configuration for Smithery capabilitiesDockerfile
: Container configuration for Smithery deploymentThis implementation uses the Farcaster Hubble API to fetch data.
# Run in development mode npm run dev
MIT