Farcaster MCP Server
The Farcaster MCP Server enables interaction with the Farcaster network by allowing you to:
Retrieve casts from a specific Farcaster user by their FID (Farcaster ID)
Retrieve casts from a specific Farcaster user by their username
Retrieve casts from a specific Farcaster channel by its name or URL
Allows to fetch casts (posts) from users and channels on the Farcaster network, search channels, and analyze content.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Farcaster MCP Server show me the latest casts from username 'vitalik.eth'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Farcaster MCP Server
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.
Features
Get User Casts: Retrieve casts from a specific Farcaster user by FID
Get Username Casts: Retrieve casts from a specific Farcaster user by username
Get Channel Casts: Retrieve casts from a specific Farcaster channel
Get User Profile: Get detailed profile information (bio, display name, pfp, etc.)
Get Cast Reactions: Get likes and recasts for a specific cast
List Channels: Browse and search Farcaster channels
Get User Following: See who a user follows
Get User Followers: See who follows a user
Related MCP server: Lens Protocol MCP Server
Installation
# Clone the repository
git clone https://github.com/manimohans/farcaster-mcp.git
cd farcaster-mcp
# Install dependencies
npm install
# Build the project
npm run buildUsage
Running the server
npm startUsing with MCP Inspector
npx @modelcontextprotocol/inspector node ./build/index.jsUsing with Claude for Desktop
Install Claude for Desktop
Open your Claude for Desktop App configuration at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"farcaster": {
"command": "node",
"args": ["/absolute/path/to/farcaster-mcp/build/index.js"]
}
}
}Restart Claude for Desktop
Using with Smithery
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 claudeAvailable client options: claude, cline, windsurf, roo-cline, witsy, enconvo
Available Tools
get-user-casts
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."
get-username-casts
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'."
get-channel-casts
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."
get-user-profile
Gets detailed profile information for a Farcaster user.
Parameters:
fid(optional): Farcaster user ID (number)username(optional): Farcaster username (string)
Example query: "Get the profile for username 'dwr.eth'."
get-cast-reactions
Gets likes and recasts for a specific cast.
Parameters:
fid: FID of the cast author (number)hash: Hash of the cast (string)type(optional): Type of reactions - "likes", "recasts", or "all" (default: "all")
Example query: "How many likes does cast 0x1cb62ca3... by FID 6846 have?"
list-channels
Lists Farcaster channels with optional search filtering.
Parameters:
limit(optional): Maximum number of channels to return (default: 20)search(optional): Search term to filter channels by name or ID
Example query: "List the top 10 channels about AI."
get-user-following
Gets the list of users that a Farcaster user follows.
Parameters:
fid: Farcaster user ID (number)limit(optional): Maximum number of results (default: 25)
Example query: "Who does FID 3 follow?"
get-user-followers
Gets the list of users who follow a Farcaster user.
Parameters:
fid: Farcaster user ID (number)limit(optional): Maximum number of results (default: 25)
Example query: "Who follows FID 3?"
API Details
This implementation uses the Farcaster Hubble API to fetch data.
Development
# Run in development mode
npm run devLicense
MIT
Available Tools
3 toolsget-channel-castsC
Get casts from a specific Farcaster channel
Inputs: channel (required), limit.
get-user-castsB
Get casts from a specific Farcaster user by FID
Inputs: fid (required), limit.
get-username-castsC
Get casts from a specific Farcaster username
Inputs: username (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools all retrieve casts but from different sources (channel, user by FID, username), which provides some distinction. However, the overlap in purpose (getting casts) and the potential confusion between user-based tools (FID vs. username) create moderate ambiguity, as an agent might struggle to choose the right one without clear context about the available identifier.
All tool names follow a consistent verb-noun pattern with hyphens (get-channel-casts, get-user-casts, get-username-casts). This uniformity makes the set predictable and easy to understand, with no deviations in naming style or structure.
With only 3 tools, the server feels thin for a Farcaster domain, which likely involves more operations like posting casts, interacting with content, or accessing user profiles. This limited set may hinder agents from performing comprehensive tasks, indicating an under-scoped tool surface.
The tool set is severely incomplete for a Farcaster server, covering only read operations for casts from specific sources. It lacks essential CRUD operations such as creating or deleting casts, user management, channel interactions, or broader API features, leaving significant gaps that will cause agent failures in typical workflows.
Maintenance
Related MCP Connectors
Resolve Farcaster casts to deep-link URLs for any supported Farcaster client app. No auth.
AI Agent Utility Layer for agent safety, web monitoring, crypto research and tool discovery.
Web search, scraping, Google Trends and data lookups. Paid per call in USDC on Base via x402.
Search ATProto writing, annotations, identity, agents, and forum posts. 12 read-only tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows Claude to interact with Warpcast accounts, enabling actions like posting casts, reading content, searching by keywords, and managing channel interactions through natural language.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI tools to interact with the Lens Protocol decentralized social network ecosystem. Supports fetching profiles, posts, followers, searching content, and accessing social graph data through standardized MCP interfaces.4-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with Warpcast (Farcaster) through Claude, allowing users to post casts, search and read content, get trending posts, and manage channel subscriptions using natural language.-
- AlicenseNot gradedqualityDmaintenanceProvides tools for AI assistants to query the Canton Network for data on contracts, governance, validators, and party transactions through the Lighthouse Explorer API. It enables seamless interaction with blockchain statistics, price history, and name services without requiring an API key.208 npmMIT