Claude Code
Use API Direct as an MCP server in Claude Code to search social media and news directly from your terminal.
Setup
Run this command, replacing YOUR_API_KEY with your key from the API Keys page:
claude mcp add --transport http apidirect https://apidirect.io/mcp?token=YOUR_API_KEY
That’s it. Claude Code can now search LinkedIn, Twitter/X, Reddit, YouTube, Instagram, TikTok, forums, and news articles.
Usage
Ask Claude Code to search any supported platform. For example:
- “Search LinkedIn for posts about AI agents”
- “Find recent Reddit discussions about React Server Components”
- “Search Twitter for posts about the latest OpenAI release”
- “Get @elonmusk’s Twitter profile”
- “Show me the latest tweets from @OpenAI”
- “What’s trending on Twitter right now?”
- “Find YouTube videos about MCP servers”
- “Search news for articles about climate policy”
Claude Code will automatically call the right tool and return results.
Available Tools
| Tool | Description |
|---|---|
search_linkedin |
Search LinkedIn posts |
search_twitter |
Search Twitter/X posts |
twitter_user_profile |
Get a Twitter/X user’s profile by username |
twitter_user_tweets |
Get tweets posted by a Twitter/X user |
twitter_user_followers |
Get the followers of a Twitter/X user |
twitter_user_following |
Get the accounts a Twitter/X user is following |
twitter_verified_followers |
Get the verified followers of a Twitter/X user |
twitter_user_replies |
Get replies posted by a Twitter/X user |
twitter_tweet_details |
Get details for a single tweet by ID |
twitter_tweet_retweets |
Get users who retweeted a tweet |
twitter_tweet_quotes |
Get quote tweets for a tweet |
twitter_tweet_comments |
Get comments on a tweet |
twitter_trends |
Get trending topics for a location |
search_reddit |
Search Reddit posts |
search_reddit_comments |
Search Reddit comments |
search_youtube |
Search YouTube videos |
search_instagram |
Search Instagram posts by hashtag |
search_tiktok |
Search TikTok videos |
search_forums |
Search forum posts across the web |
search_news |
Search news articles from thousands of sources |
Removing the Server
claude mcp remove apidirect
Troubleshooting
“No API key provided” — Make sure the ?token= parameter is included in the URL.
“Invalid API key” — Double-check your API key in the dashboard. Keys start with ak_live_.
“Rate limit exceeded” — You’ve hit your plan’s rate limit. Check your usage or upgrade your plan.