rabadaki/general-mcp
If you are the rightful owner of general-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A comprehensive Model Context Protocol (MCP) server that provides AI assistants with access to social media platforms, web services, and SEO tools.
get_subreddit_posts
Get posts from a specific subreddit
search_twitter
Search Twitter posts
search_instagram
Search Instagram posts
search_youtube
Search YouTube videos
search_perplexity
AI-powered web search
General MCP Server
A comprehensive Model Context Protocol (MCP) server that provides AI assistants with access to social media platforms, web services, and SEO tools.
š Features
Social Media & Web Tools
- Reddit: Search posts, get subreddit content, comments
- Twitter: Search tweets, get user timelines
- Instagram: Search posts, get user profiles
- TikTok: Search videos, get user content
- YouTube: Search videos, get trending content
- Perplexity: AI-powered web search
- Google Trends: Search trend analysis and comparisons
SEO & Analytics Tools (DataForSEO)
- SERP Analysis: Get Google search results data
- Keyword Research: Search volume, CPC, competition analysis
- Competitor Analysis: Domain traffic, backlinks, competitive keywords
- Website Performance: Lighthouse audits, performance scores
š Project Structure
general-mcp/
āāā src/ # Main source code
ā āāā mcp_stdio_server.py # Primary MCP server
āāā config/ # Configuration files
ā āāā requirements.txt # Python dependencies
ā āāā mcp_requirements.txt # MCP-specific dependencies
ā āāā *.json # Configuration files
ā āāā *.js # Bridge files
āāā scripts/ # Utility scripts
ā āāā restart_claude.sh # Restart Claude Desktop
ā āāā cleanup_project.py # Project organization script
ā āāā *.py # Various utility scripts
āāā tests/ # All test files
āāā docs/ # Documentation
āāā logs/ # Log files
āāā backup/ # Backup files
āāā venv/ # Virtual environment
āāā README.md # This file
š ļø Installation
Prerequisites
- Python 3.8+
- Claude Desktop (for MCP integration)
Quick Setup
- Clone and setup environment:
git clone <repository-url>
cd general-mcp
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r config/requirements.txt
- Configure API keys: Set environment variables or edit the server file:
export YOUTUBE_API_KEY="your_key_here"
export PERPLEXITY_API_KEY="your_key_here"
export APIFY_TOKEN="your_token_here"
export DATAFORSEO_LOGIN="your_login_here"
export DATAFORSEO_PASSWORD="your_password_here"
- Configure Claude Desktop:
Edit
~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"general-mcp": {
"command": "python",
"args": ["/path/to/general-mcp/mcp_stdio_server.py"],
"env": {
"PYTHONPATH": "/path/to/general-mcp"
}
}
}
}
- Start the server:
# MCP mode (for Claude Desktop)
python mcp_stdio_server.py
# HTTP mode (for web interface)
python mcp_stdio_server.py --http
- Restart Claude Desktop:
./scripts/restart_claude.sh
š§ Usage
In Claude Desktop
Once configured, you can use natural language to interact with the tools:
"Search Reddit for Python tutorials"
"Get trending YouTube videos about AI"
"Analyze the SEO for example.com"
"Research keywords for 'machine learning'"
HTTP Mode
Access the web interface at http://localhost:8000
:
- Automatic API documentation
- Real-time API usage monitoring
- Server-sent events for live updates
š API Usage & Cost Tracking
The server includes comprehensive usage tracking:
- Request counts by service and endpoint
- Cost estimates for paid APIs
- Rate limiting protection
- Detailed logging
View usage stats:
python scripts/count_tools.py
š Available Tools
Social Media Tools
get_subreddit_posts
- Get posts from a specific subredditget_reddit_comments
- Get comments from a Reddit postsearch_reddit
- Search across Redditsearch_twitter
- Search Twitter postsget_user_tweets
- Get tweets from a specific usersearch_instagram
- Search Instagram postsget_instagram_profile
- Get Instagram user profilesearch_tiktok
- Search TikTok videosget_tiktok_user_videos
- Get videos from TikTok usersearch_youtube
- Search YouTube videosget_youtube_trending
- Get trending YouTube videos
Web & Analysis Tools
search_perplexity
- AI-powered web searchsearch_google_trends
- Search Google Trends datacompare_google_trends
- Compare multiple terms on Google Trendssearch_serp
- Get Google search results (DataForSEO)keyword_research
- Keyword analysis and search volumecompetitor_analysis
- Domain and competitor analysislighthouse_audit
- Website performance auditlighthouse_performance_score
- Quick performance scorelighthouse_bulk_audit
- Audit multiple URLs
šØ Troubleshooting
Common Issues
-
"Tool not found" errors:
- Restart Claude Desktop:
./scripts/restart_claude.sh
- Check configuration path in claude_desktop_config.json
- Restart Claude Desktop:
-
API timeout errors:
- Some tools (especially social media) take 60-90 seconds
- This is normal for comprehensive data gathering
-
Permission errors:
- Ensure Python path is correct in configuration
- Check file permissions:
chmod +x scripts/*.sh
-
DataForSEO errors:
- Verify API credentials
- Check account plan limits
- Some tools require premium subscription
Debug Mode
Enable detailed logging:
tail -f logs/mcp_debug.log
š Development
Adding New Tools
- Add function to
mcp_stdio_server.py
- Add tool definition to
MCPServer.tools
- Add handler in
handle_message
method - Test with provided test scripts
Running Tests
cd tests/
python test_*.py
Code Organization
- Keep all tests in
/tests
- Put utilities in
/scripts
- Configuration in
/config
- Documentation in
/docs
š License
This project is licensed under the MIT License.
š¤ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
š Support
- Check
/docs
for detailed documentation - Review
/logs
for debugging information - Use
/scripts/verify_live_apis.py
to test API connectivity
Version: 1.0.0
Last Updated: December 2024
Author: General MCP Team