FetchLayer fetchlayer.dev Sign in

+ Integration Guide

How to Connect Twitter MCP to VS Code (GitHub Copilot)

Add FetchLayer's Twitter/X MCP server to VS Code so GitHub Copilot's agent mode can search tweets, get profiles, and pull follower data.

Written by Alex P.

  • MCP
  • VS Code
  • GitHub Copilot
  • twitter scraping
  • X scraping
  • AI agent

VS Code supports MCP servers through GitHub Copilot’s agent mode. You can add FetchLayer’s Twitter/X MCP server to give Copilot access to tweet search, profile lookup, follower graphs, and more.


Prerequisites

  • VS Code with GitHub Copilot extension installed
  • GitHub Copilot agent mode enabled
  • A FetchLayer API key — get one free (no credit card)

Step 1: Create the MCP config

VS Code reads MCP configurations from .vscode/mcp.json in your workspace root.

Create the file .vscode/mcp.json:

{
  "servers": {
    "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 2: Reload VS Code

Reload the window (Ctrl+Shift+P → “Reload Window”) to pick up the new MCP config.


Step 3: Use it in Copilot Chat

Open Copilot Chat in agent mode and try:

Search X/Twitter for “VS Code extensions for Python” and show me the most recommended ones.

Copilot will use the FetchLayer tools to search Twitter and return structured results.

More examples:

  • “What are people saying about GitHub Copilot on X/Twitter?”
  • “Get tweets from @rauchg about Next.js”
  • “Get the profile and follower count for @openai”
  • “Find verified followers of @levelsio”

All available tools

All 10 FetchLayer Twitter/X endpoints are available: search, tweet detail, replies, user profiles, user tweets, followers, following, verified followers, and more. See the full endpoint list.


What’s Next