Build AI Agents for the Social Web with Surf + Claude
from The Kitchen Sink
What if an AI agent could search the entire social web, summarize what's happening, curate a custom feed, and post about it — all from a single natural language instruction?
That's what you can build today with Surf's MCP integration and the Claude Agent SDK. And starting June 15, Anthropic is giving every Claude seat free monthly credits to do it.
Surf is a Claude Connector
Surf has been a native Model Context Protocol (MCP) connector since launch. MCP is the open standard that lets AI models call external tools — and Surf exposes 23 of them. When you connect Claude to Surf, it can search feeds, get posts, look up profiles, summarize content, extract articles, create custom feeds, and even post to Mastodon and Bluesky.
The tools are organized into four categories:
Search & Discovery — Find feeds, posts, accounts, podcasts, and trending content across the social web.
AI & Analysis — Get AI-generated feed summaries, ask natural language questions about content, and search via NLWeb agents (IMDB, TripAdvisor, and more).
Content & Media — Resolve shortened URLs, extract full article text from links, analyze images, and convert text to speech.
Create & Manage — Build and save custom feeds, set visual themes, post to Mastodon or Bluesky, and favourite posts. These require authentication and the agent always confirms with you before posting.
The SurfAgent SDK
We shipped SurfAgent in our Python and TypeScript SDKs — a wrapper that pre-configures the Claude Agent SDK with all 23 Surf tools, a social-web-aware system prompt, and budget controls.
Here's the entire setup:
pip install claude-agent-sdk
import asyncio
from surf_api.agent import SurfAgent
async def main():
agent = SurfAgent(surf_api_key="surf_sk_live_your_token")
result = await agent.run(
"Find the top AI feeds on Surf, get the latest posts "
"from each, and summarize the key themes."
)
print(result.text)
asyncio.run(main())
That's it. The agent discovers feeds, fetches posts, and synthesizes a summary — all autonomously. You can also stream responses in real time for interactive UIs.
TypeScript works the same way:
import { SurfAgent } from '@surf/api';
const agent = new SurfAgent({ surfApiKey: 'surf_sk_live_...' });
const result = await agent.run(
'Search for posts about climate technology and summarize the sentiment'
);
console.log(result.text);
What Can You Build?
The 23 tools are building blocks. Here are some things developers are exploring:
Content curation bots — “Find feeds about renewable energy, clean tech, and sustainability. Create a custom feed called Climate Daily from the best sources.” The agent searches, evaluates, and creates the feed in one step.
Monitoring agents — “Check the technology feed every hour. If any post gets more than 50 favourites, extract the linked article and send me a summary.” Combine search_posts, extract_article, and summarize_feed for automated intelligence.
Research assistants — “What are the trending topics on the social web today? Get the latest posts from each and identify the common themes.” The agent calls get_trending_feeds, then get_feed_posts for each, then synthesizes.
Branded feed creators — “Build a themed feed about space exploration with a dark blue header and posts from NASA, SpaceX, and ESA accounts.” Uses feed creation, theming (our new Feed Themes API), and operator management together.
Safety by Default
SurfAgent defaults to read-only mode — only 19 of the 23 tools are enabled. The four write tools (posting, favouriting, saving feeds, setting themes) require explicit opt-in:
agent = SurfAgent(
surf_api_key="surf_sk_live_...",
allow_writes=True
)
Even with writes enabled, the agent's system prompt instructs it to always confirm with you before posting. The allow_writes flag is the hard guardrail; the prompt is the soft one.
Free Credits from Anthropic
Starting June 15, 2026, Anthropic is giving every Claude Standard seat $20/month and every Premium seat $100/month in credits specifically for Agent SDK usage. This is separate from your regular Claude subscription.
What this means for Surf developers: the Claude compute that powers your SurfAgent runs on this free credit. Your Surf API calls use your normal Surf API token and rate limits. So the only cost is the Surf API usage, which is free on our Free tier (60 requests/minute, 10K/day).
Connect Any MCP Client
SurfAgent is the easiest path, but any MCP-compatible client works. The server URL is:
https://mcp.surf.social/mcp
For Claude Code, add it to your configuration:
{
"mcpServers": {
"surf": {
"url": "https://mcp.surf.social/mcp"
}
}
}
Then just ask Claude to search feeds, summarize content, or create custom feeds in plain English.
Get Started
- Apply for developer access if you haven't already
- Read the MCP Integration Guide for full tool documentation
- Install the SDK:
pip install surf-api claude-agent-sdkornpm install @surf/api @anthropic-ai/claude-agent-sdk - Claim your Anthropic Agent SDK credit starting June 15
The social web just got a brain. What will you build?
The Surf Developer API is open to all developers. SDKs are open source on GitHub. Join our Discord for help and to show off what you're building.
#surf #ai #agents #claude #mcp #developers #api #fediverse










