- Home
- MCP servers
- Context API
Context API
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"doppelgangersai-context-mcp-server": {
"command": "npx",
"args": [
"-y",
"context-api-mcp"
],
"env": {
"CONTEXT_API_KEY": "your-api-key-here",
"CONTEXT_API_URL": "https://dev.doppelgangers.ai:3003"
}
}
}
}You can access contextualized renderings of Twitter/X posts through the Context API MCP Server. This MCP server lets you semantically search, retrieve, and analyze posts with added context to improve relevance and insights while tracking your API credits.
How to use
You connect to the Context API MCP Server from your MCP client. Use the search_relevant_posts tool to find contextualized posts based on natural language queries, such as asking what a specific user thinks about a topic. Use the get_all_user_posts tool to retrieve all contextualized post renderings for a user to analyze moods, trends, and topics across posts. Check credits to monitor your remaining API balance.
How to install
Prerequisites: Node.js 18+ installed on your machine. You will also configure an API key for the service.
curl -X POST https://dev.doppelgangers.ai:3003/auth/request-key \
-H "Content-Type: application/json" \
-d '{"email": "your@email.com", "name": "Your Name"}'
Configure your MCP client to include the Context API MCP server using the provided snippet. You will replace the placeholder with your actual API key.
{
"mcpServers": {
"context_api": {
"command": "npx",
"args": ["-y", "context-api-mcp"],
"env": {
"CONTEXT_API_KEY": "your-api-key-here"
}
}
}
}
Configuration and usage notes
There is no need to add descriptions for external videos or links within the XML renderings. The server enriches each post with descriptions of referenced posts and images, as well as metadata such as creation date and post IDs. If you encounter issues, ensure your API key is set correctly in your MCP client environment and restart your client after changes.
Troubleshooting
If the server does not appear in your MCP client, verify you are using Node.js 18+ and that the CONTEXT_API_KEY environment variable is set. Restart the client to apply changes.
Development
To run the server locally from source, follow a standard Node.js workflow: clone the project, install dependencies, build, and start. The typical steps are: install dependencies with npm, build the project, and run the built entry point.
Available tools
search_relevant_posts
Semantic search of contextualized post renderings from a specific Twitter/X user using natural language queries to find relevant posts.
get_all_user_posts
Retrieve all contextualized post renderings for a specific Twitter/X user to analyze posts for insights, trends, and topics.
check_credits
Check your Context API credit balance and usage statistics.