Skip to content

Reddit and X data in Windsurf

Add ChatterAPI to Cascade's mcp_config.json and the Windsurf agent can search Reddit and X, find subreddits and read threads. It uses a serverUrl and a header, and reads the key from your environment.

MCP server URLhttps://api.chatterapi.com/mcp

What you get

  • Every live Reddit and X tool is available as an MCP tool: search, threads, subreddits, users, followers, timelines, leads and brand mentions.
  • Each result includes credits.charged and credits.remaining, so the agent can see what it spent.
  • Every key gets two free tools: chatterapi_account for your balance and chatterapi_list_tools for every tool and its cost.
  • You don't need a Reddit or X developer account. The same key works for REST calls and draws from the same credit balance.

Set it up

  1. Create an API key

    Sign in at chatterapi.com/signup with Google and create a key on the Keys page. You get 100 free credits. A ca_test_ key returns recorded samples for 0 credits, which is handy during setup.

  2. Open the MCP config

    In Cascade, open MCP servers and click View raw config. Current docs put the file at ~/.config/devin/mcp_config.json on macOS and Linux, and %APPDATA%\devin\mcp_config.json on Windows. Older installs used ~/.codeium/windsurf/mcp_config.json.

  3. Add the server

    ${env:CHATTERAPI_KEY} reads the key from your environment. You can paste the key there instead.

    mcp_config.json
    {
      "mcpServers": {
        "chatterapi": {
          "serverUrl": "https://api.chatterapi.com/mcp",
          "headers": {
            "Authorization": "Bearer ${env:CHATTERAPI_KEY}"
          }
        }
      }
    }
  4. Refresh

    Press refresh in the MCP servers panel. The tools show up under chatterapi.

Try a subreddit search

Ask where to post and Cascade calls reddit_communities. The response below is a real recorded call.

Try this prompt

Find subreddits about SaaS marketing and list them by size.

{
  "method": "tools/call",
  "params": {
    "name": "reddit_communities",
    "arguments": {
      "q": "saas marketing"
    }
  }
}
response, first 2 rows
{
  "data": [
    {
      "name": "SaaSMarketing",
      "title": "SaaSMarketing",
      "description": "A community dedicated to sharing and discussing all aspects of SaaS marketing,  from super tactical stuff all the way up to overarching strategy. \n\nIf you're a SaaS founder and you're making $5K-$500K MRR, consider joini…",
      "subscribers": 37320,
      "createdAt": "2021-08-14T09:41:52.000Z",
      "nsfw": false,
      "url": "https://www.reddit.com/r/SaaSMarketing/",
      "rules": null,
      "moderators": null,
      "posting": null
    },
    {
      "name": "B2BSaaS",
      "title": "B2B SaaS: It's big enough to deserve its own subreddit.",
      "description": "This subreddit is directed at anyone involved in a B2B SaaS business.\n\nTypical topics include conversions, retention, churn, metrics, analytics, engagement, inbound marketing, distribution channels and so on.\n\nShare advi…",
      "subscribers": 30565,
      "createdAt": "2014-02-01T19:34:22.000Z",
      "nsfw": false,
      "url": "https://www.reddit.com/r/B2BSaaS/",
      "rules": null,
      "moderators": null,
      "posting": null
    }
  ],
  "page": {
    "nextCursor": "ASez…",
    "hasMore": true
  }
}

Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 2 credits for this call. A test key returns this same sample for 0 credits.

Limits worth knowing

  • Cascade can use at most 100 tools at a time across all servers. If you add many servers, turn off the tools you don't use. source
  • The config supports ${env:VAR} and ${file:/path} interpolation. source
  • On Enterprise plans MCP has to be turned on in settings, and Team or Enterprise admins can control MCP access. source

Last checked . Sources: Cascade MCP docs.

Questions

Does it cost more through Windsurf than through REST?
No. MCP and REST call the same tools, cost the same credits and draw from one balance.
Can I try it without spending credits?
Yes. Use a ca_test_ key. Every tool returns a recorded sample for 0 credits, whatever you ask.
Is ChatterAPI part of Reddit or X?
No. ChatterAPI is independent and not affiliated with Reddit, Inc. or X Corp.

What people build with it

AI coding and chat clients

Give your agent Reddit and X data

Sign up and get 100 free credits. No card required.