</>MCP Agents Market
MCP Server

MAHORAGA

by ygwyg864TypeScriptUpdated 2026-02-17

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

24/7 autonomous trading execution on Cloudflare Workers with no local machine required
Multi-source sentiment analysis from StockTwits, Reddit (4 subreddits), and Twitter
Support for five LLM providers (OpenAI, Anthropic, Google, xAI, DeepSeek) via AI SDK or Cloudflare AI Gateway
Cryptocurrency trading support for BTC, ETH, and SOL with round-the-clock operations
Options trading for high-conviction plays with configurable risk parameters
Pluggable strategy system allowing custom gatherers, prompts, and entry/exit rules
Staleness detection that automatically exits positions losing momentum
MCP server endpoint exposing trading tools and agent control to AI clients

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 more

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.

Related searches