MAHORAGA
autonomous trading agent powered by social sentiment analysis and ai that learns, grows, and adapts
MAHORAGA is an MCP server and autonomous trading agent that runs continuously on Cloudflare Workers, combining social sentiment analysis with AI-powered decision making. It monitors StockTwits, Reddit, and Twitter for trading signals, uses multiple LLM providers (OpenAI, Anthropic, Google, xAI, DeepSeek) to analyze market sentiment, and executes trades through Alpaca's brokerage API. The system supports both traditional stock trading and 24/7 cryptocurrency trading (BTC, ETH, SOL), with options trading capabilities for high-conviction plays. Built on Cloudflare's Durable Objects architecture, it features persistent state management, automatic restarts, and a pluggable strategy system that lets developers customize gathering, analysis, and trading rules without modifying core code.
Key Features
Use Cases
- 01Running a 24/7 sentiment-driven trading bot for cryptocurrency markets
- 02Building custom trading strategies using social media signals without writing core infrastructure
- 03Paper trading to test AI-powered trading strategies before risking real capital
- 04Integrating trading agent capabilities into AI assistants via the MCP protocol
- 05Monitoring multi-platform social sentiment for stock and crypto opportunities
- 06Executing pre-market analysis and preparing automated trading plans
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
MAHORAGA — FAQ
What is MAHORAGA MCP server?+
MAHORAGA is an MCP server that provides an autonomous trading agent interface, combining social sentiment monitoring from StockTwits, Reddit, and Twitter with AI-powered analysis from multiple LLM providers to execute trades through Alpaca. It runs continuously on Cloudflare Workers and exposes trading tools via the MCP protocol.
How do I install and deploy MAHORAGA?+
Clone the repository, install dependencies with npm, create Cloudflare D1 database and KV namespace resources using wrangler commands, configure secrets (Alpaca API keys, LLM provider keys, authentication token), deploy with 'npx wrangler deploy', then enable the agent via authenticated API call. Full setup requires Node.js 18+ and a Cloudflare account.
What API keys and accounts do I need?+
You need a Cloudflare account (free tier works), an Alpaca brokerage account (free, paper trading supported), and at least one LLM provider API key (OpenAI, Anthropic, Google, xAI, or DeepSeek). Optional services include Twitter API bearer token and Discord webhook for notifications.
Which AI clients work with the MAHORAGA MCP server?+
Any MCP-compatible client can connect to the /mcp endpoint to access trading tools and agent control. The server runs as a web service on Cloudflare Workers and exposes authenticated HTTP endpoints.
Is MAHORAGA free to use?+
The MAHORAGA software is open source under MIT license and free to use. However, you'll incur costs from Cloudflare Workers usage (free tier available), LLM API calls, and potential trading fees through Alpaca. The software is provided for educational purposes only and comes with no guarantees.
Can I customize the trading strategy without modifying core code?+
Yes, MAHORAGA uses a pluggable strategy system where you create custom strategy modules implementing the Strategy interface. You can add custom data gatherers, override LLM prompts, and define your own entry/exit rules by creating files in the src/strategy directory and changing a single import line.
How do I install MAHORAGA?+
Open the source repository on GitHub and follow its README. MAHORAGA is a mcp server — MCP Agents Market links you directly to the official repo.
Is MAHORAGA free?+
MAHORAGA is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.