Sponsored by Deepsite.site

Integrate MCP Server

Created By
NexusX-MCP8 months ago
Content

Integrate MCP Server

An extensible Model Context Protocol server that provides standardized access to social platform data and onchain data. Currently supports Farcaster (via Neynar API) with placeholder for Twitter integration. More platforms like Telegram including onchain data will be added soon.

Features

  • MCP Compliant: Fully implements the Model Context Protocol specification
  • Multi-Platform: Designed to support multiple social media platforms
  • Extensible: Easy to add new platform providers
  • Well-Formatted: Optimized context formatting for LLM consumption
  • Flexible Transport: Supports both stdio and SSE/HTTP transports

Supported Platforms

  • Farcaster: Full implementation via Neynar API
  • Twitter: Placeholder (not implemented)

Getting Started

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/NexusX-MCP/integrate-mcp-server.git
cd integrate-mcp-server
  1. Install dependencies
npm install
  1. Create a .env file from the template
cp .env.example .env
# Edit .env with your API keys
  1. Configure your environment variables

    • Required: Set NEYNAR_API_KEY in your .env file
    • You can obtain a Neynar API key from https://neynar.com/
    • Without a valid API key, Farcaster functionality will not work
  2. Build and start the server

npm run build
npm start  # For stdio mode (default)
# OR
npm run start:http  # For HTTP/SSE mode

Using with Claude for Desktop

  1. Build the server
npm run build
  1. Make sure your .env file is properly configured with your API keys

    • The server will look for .env in the following locations:
      • Current working directory
      • Project root directory
      • Parent directories (up to 3 levels)
    • You can also set environment variables directly in your system
  2. Add the server to your Claude Desktop configuration at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "integrate-social": {
      "command": "/usr/local/bin/node",
      "args": [
        "/full/path/to/integrate-mcp-server/dist/index.js",
        "--stdio"
      ]
    }
  }
}
  1. Alternatively, you can pass the API key and other environment variables directly in the Claude Desktop configuration (recommended):
{
  "mcpServers": {
    "integrate-social": {
      "command": "/usr/local/bin/node",
      "args": [
        "/full/path/to/integrate-mcp-server/dist/index.js",
        "--stdio"
      ],
      "env": {
        "NEYNAR_API_KEY": "YOUR_API_KEY_HERE",
        "ENABLE_FARCASTER": "true",
        "ENABLE_TWITTER": "false"
      }
    }
  }
}
  1. Restart Claude for Desktop

MCP Capabilities

Resources

  • social://{platform}/{query}/search - Search content on a platform
  • social://{platform}/user/{userId}/profile - Get user profile
  • social://{platform}/wallet/{walletAddress}/profile - Get user profile by wallet address (Farcaster only)
  • social://{platform}/user/{userId}/balance - Get user's wallet balance (Farcaster only)
    • Accepts either FID (numeric) or username
    • If username is provided, automatically converts to FID before fetching balance
  • social://{platform}/wallet/{walletAddress}/profile - Get user profile by wallet address
  • social://{platform}/user/{userId}/content - Get user content
  • social://{platform}/thread/{threadId} - Get conversation thread
  • social://{platform}/trending - Get trending topics
  • social://{platform}/trending-feed - Get trending feed content with multi-provider support (Farcaster only)
    • Supports providers: neynar (default), openrank, mbd
    • Parameters: timeWindow (1h, 6h, 12h, 24h, 7d, 30d), limit
  • social://{platform}/channels/search - Search for channels on a platform (Farcaster only)
    • Parameters: query, limit, cursor
    • Returns channel details including name, description, follower count, and metadata
  • social://{platform}/channels/bulk-search - Search for multiple channels in parallel (Farcaster only)
    • Parameters: queries (array), limit, cursor
    • Returns results for each query with channel details and pagination info

Tools

  • search-content - Search for content on a social platform
  • get-user-profile - Get a user's profile information
  • get-user-profile-by-wallet - Get user profile using wallet address (Farcaster only)
  • get-user-balance - Get user's wallet balance (Farcaster only)
    • Accepts either FID (numeric) or username
    • Automatically handles username to FID conversion
  • get-user-content - Get content from a specific user
  • get-thread - Get a conversation thread
  • get-trending-topics - Get current trending topics
  • getTrendingFeed - Get trending feed with multi-provider support (Farcaster only)
  • get-wallet-profile - Get profile based on wallet address
  • search-channels - Search for channels on a platform (Farcaster only)
    • Parameters: query, limit, cursor
    • Returns detailed channel information including follower count and metadata
  • search-bulk-channels - Search for multiple channels in parallel (Farcaster only)
    • Parameters: queries (array), limit, cursor
    • Returns results for each query with channel details and pagination info

Prompts

  • analyze-thread - Analyze a social media thread
  • summarize-user-activity - Summarize a user's activity
  • explore-trending-topics - Explore trending topics on a platform
  • analyze-search-results - Analyze search results for a query
  • explore-trending-feed - Analyze trending feed content across different providers
  • get-wallet-profile - Get and analyze user profile by wallet address
  • check-user-balance - Analyze user's wallet balance and holdings
    • Works with both FID and username inputs
    • Handles automatic FID resolution for usernames
  • explore-channels - Analyze and explore channels on a platform
    • Provides insights about channel popularity and content
    • Helps discover relevant channels based on search criteria
  • explore-bulk-channels - Analyze and compare multiple channels in parallel
    • Efficiently searches and compares multiple channels
    • Provides insights about channel relationships and trends

Extending with New Providers

To add a new social platform provider:

  1. Create a new directory in src/providers/
  2. Implement the ContentProvider interface
  3. Register the provider in the registry

Example:

import { ContentProvider } from '../interfaces/provider';

export class MyPlatformProvider implements ContentProvider {
  public name = 'myplatform';
  public platform = 'myplatform';
  
  // Implement all required methods
}

Development

Running in Development Mode

npm run dev        # stdio mode
npm run dev:http   # HTTP mode

Testing

npm test

Linting

npm run lint
npm run lint:fix

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Changelog

All notable changes to this project will be documented in this file.

[1.0.0] - 2025-Mar-10

Added

  • Initial release
  • Farcaster integration via Neynar API
  • MCP compliant server implementation
  • Support for both stdio and HTTP modes

[1.0.1] - 2025-Mar-19

Added

  • Added new tools and resource to fetch user profile with wallet address
  • Added new tests

[1.0.2] - 2025-Mar-21

Added

  • Added functionality to retrieve wallet balances of Farcaster users via ID or username
  • Implemented multi-provider support for trending feed content
  • Enhanced updateUserProfile with additional user details

[1.0.3] - 2025-Mar-24

Added

  • Add support to fetch Single and Bulk farcaster channel information
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.