Using xActions with OpenRouter
xActions is an MCP server that provides AI agents with the ability to interact with social platforms like Twitter/X. Use it with any OpenRouter-powered AI client.
What is OpenRouter?
OpenRouter provides a unified API to access 200+ AI models from Anthropic, OpenAI, Google, Meta, and more.
Quick Setup
1. Get Your OpenRouter API Key
- Sign up at openrouter.ai
- Generate an API key at openrouter.ai/settings/keys
2. Configure Your AI Client
Set OpenRouter as your model provider in your AI client (Claude Desktop, Cursor, etc.):
{
"modelProvider": {
"type": "openrouter",
"apiKey": "sk-or-v1-your-key-here"
}
}
3. Add xActions MCP Server
{
"mcpServers": {
"xactions": {
"command": "npx",
"args": ["-y", "@nirholas/xactions"],
"env": {
"TWITTER_API_KEY": "your-twitter-api-key",
"TWITTER_API_SECRET": "your-twitter-api-secret",
"TWITTER_ACCESS_TOKEN": "your-access-token",
"TWITTER_ACCESS_SECRET": "your-access-secret"
}
}
}
}
4. Start Using
Ask your AI to:
- "Post a tweet about the latest ETH price"
- "Search for tweets about Solana"
- "Get the latest tweets from @VitalikButerin"
- "Reply to this tweet with a summary"
Available Tools
| Tool | Description |
|---|---|
post_tweet |
Post a new tweet |
search_tweets |
Search for tweets by query |
get_user_tweets |
Get tweets from a specific user |
reply_to_tweet |
Reply to an existing tweet |
like_tweet |
Like a tweet |
retweet |
Retweet a post |
get_trending |
Get trending topics |
Getting Twitter API Keys
- Apply for a Twitter Developer account at developer.twitter.com
- Create a new project and app
- Generate your API keys and access tokens
- Add them to your MCP server configuration
Resources
Support
- GitHub Issues
- Twitter: @nichxbt
⚡ Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation