FetchLayer fetchlayer.dev Sign in

+ Integration Guide

How to Connect Twitter MCP to Windsurf

Step-by-step guide to adding FetchLayer's Twitter/X MCP server to Windsurf. Give your AI coding agent access to tweet search, profiles, and follower data.

Written by Alex P.

  • MCP
  • Windsurf
  • twitter scraping
  • X scraping
  • AI agent
  • IDE integration

Windsurf is an AI-powered IDE by Codeium that supports the Model Context Protocol (MCP). You can connect FetchLayer’s Twitter/X MCP server to give Windsurf’s Cascade agent access to all 10 Twitter endpoints.


Prerequisites


Step 1: Open MCP settings

In Windsurf, open the MCP configuration:

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Search for “MCP: Configure” or “Windsurf Settings”
  3. Navigate to the MCP servers section

Alternatively, edit the config file directly at ~/.windsurf/mcp.json (global) or .windsurf/mcp.json (per-project).


Step 2: Add the FetchLayer server

Add this to your MCP configuration:

{
  "mcpServers": {
    "fetchlayer": {
      "url": "https://mcp.fetchlayer.dev",
      "headers": {
        "Authorization": "Bearer sk-your-api-key"
      }
    }
  }
}

Replace sk-your-api-key with your actual key from the FetchLayer dashboard.


Step 3: Restart and verify

Restart Windsurf or reload the window. The FetchLayer MCP server should appear in the agent’s available tools.


Try it out

Open Cascade (Windsurf’s AI agent) and try:

Search X/Twitter for discussions about “best TypeScript ORMs” and summarize the top recommendations.

Cascade will call FetchLayer’s Twitter tools and incorporate the data into its response.

More examples:

  • “What are developers saying about Svelte 5 on X/Twitter?”
  • “Get the profile and recent tweets from @rauchg”
  • “Find verified followers of @levelsio”

All available tools

Once connected, Cascade has access to all 10 FetchLayer Twitter/X tools: search, tweet detail, replies, profiles, user tweets, followers, following, verified followers, and more. See the full endpoint list.


What’s Next