Gopher AI (Twitter Search)
FreeNot checkedIntegrates with Twitter through the Gopher AI API to search and retrieve relevant posts with metadata and relevance scores using natural language queries for so
About
Integrates with Twitter through the Gopher AI API to search and retrieve relevant posts with metadata and relevance scores using natural language queries for social media analysis, trend monitoring, and research applications.
README
A Model Context Protocol (MCP) server that provides access to the Gopher AI API. This server allows MCP clients to search data through the Gopher AI platform.
Features
- Twitter Search: Search Twitter posts using natural language queries
- MCP Integration: Fully compatible with Model Context Protocol clients
- Configurable Results: Adjustable maximum number of search results
- Error Handling: Comprehensive error handling and reporting
- Async Processing: Handles asynchronous API responses with polling
Prerequisites
- Go 1.24.7 or later
- Gopher AI API key
- MCP-compatible client (e.g., Claude Desktop, Cline, etc.)
Installation
From Source
- Clone the repository:
git clone https://github.com/gopher-lab/gopher-mcp-server.git
cd gopher-mcp-server
- Build the server:
go build -o gopher-mcp-server ./data
Using Docker
docker build -t gopher-mcp-server .
Configuration
Environment Variables
GOPHER_API: Required - Your Gopher AI API keyMAX_RESULTS: Optional - Maximum number of search results to return (default: 15)
Example Configuration
export GOPHER_API="your-gopher-api-key-here"
export MAX_RESULTS="20"
Usage
Running the Server
# Using the binary
./gopher-mcp-server
# Using Docker
docker run -e GOPHER_API="your-api-key" gopher-mcp-server
MCP Client Configuration
Add this server to your MCP client configuration:
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"gopher-twitter": {
"command": "./gopher-mcp-server",
"env": {
"GOPHER_API": "your-gopher-api-key-here",
"MAX_RESULTS": "15"
}
}
}
}
Cline Configuration
{
"mcpServers": {
"gopher-twitter": {
"command": "docker",
"args": ["run", "--rm", "-e", "GOPHER_API=your-api-key", "gopher-mcp-server"],
"env": {
"GOPHER_API": "your-gopher-api-key-here"
}
}
}
}
Available Tools
search_twitter
Searches Twitter posts using the Gopher AI API.
Parameters:
query(string): The search query to execute
Returns:
tweets(array): Array of Twitter posts matching the search queryerror(string, optional): Error message if the search fails
Example Usage:
{
"name": "search_twitter",
"arguments": {
"query": "artificial intelligence trends 2024"
}
}
Response Example:
{
"tweets": [
{
"ID": "tweet_123",
"Content": "Exciting developments in AI this year...",
"Metadata": {...},
"Score": 0.95
}
],
"error": null
}
API Details
Twitter Post Structure
Each Twitter post in the response contains:
ID: Unique identifier for the postContent: The text content of the tweetMetadata: Additional metadata about the postScore: Relevance score for the search query
Error Handling
The server handles various error scenarios:
- API Errors: Invalid API keys, rate limiting, service unavailable
- Network Errors: Connection timeouts, network failures
- Processing Errors: Search timeout, invalid responses
Error messages are returned in the error field of the response.
Development
Building
# Build the server
make build
# Run tests
make test
# Build Docker image
make docker-build
Dependencies
github.com/modelcontextprotocol/go-sdk: MCP SDK for Gogithub.com/tmc/langchaingo: Language chain utilities
Troubleshooting
Common Issues
API Key Not Set
- Ensure
GOPHER_APIenvironment variable is set - Verify the API key is valid and has proper permissions
- Ensure
Search Timeout
- The server polls for results up to 30 times (60 seconds total)
- Check if the Gopher AI service is experiencing delays
No Results Returned
- Verify the search query is valid
- Check if there are any posts matching your criteria
- Ensure the API key has access to Twitter data
MCP Client Connection Issues
- Verify the server binary is executable
- Check that the MCP client configuration is correct
- Ensure the server is running and accessible
Debugging
Enable verbose logging by setting the log level:
export LOG_LEVEL=debug
./gopher-mcp-server
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Support
For issues and questions:
- Create an issue on GitHub
- Check the Gopher AI documentation for API-related questions
- Review MCP documentation for protocol-related issues
Installing Gopher AI (Twitter Search)
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/gopher-lab/gopher-mcp-serverFAQ
Is Gopher AI (Twitter Search) MCP free?
Yes, Gopher AI (Twitter Search) MCP is free — one-click install via Unyly at no cost.
Does Gopher AI (Twitter Search) need an API key?
No, Gopher AI (Twitter Search) runs without API keys or environment variables.
Is Gopher AI (Twitter Search) hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Gopher AI (Twitter Search) in Claude Desktop, Claude Code or Cursor?
Open Gopher AI (Twitter Search) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
ARA
Generate images, video and audio from any AI agent — one connector.
by ARAOmni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
by buildwithtazaYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolCompare Gopher AI (Twitter Search) with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
