Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
Indonesian Stock Analysis MCP Server logo

Indonesian Stock Analysis MCP Server

giantrksa/stock_mcp
3 starsUpdated 2025-11-15Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides Indonesian stock (IDX) analysis tools for Claude Code, enabling real-time stock data, technical and fundamental analysis, and buy/sell recommendations.

README.md

Indonesian Stock Analysis MCP Server

An MCP (Model Context Protocol) server that provides Indonesian stock (IDX) analysis tools for Claude Code. Ask Claude Code questions about stocks and get real-time analysis with buy/sell recommendations.

Features

  • Real-time Stock Data: Current prices, historical data for all IDX stocks
  • Technical Analysis: RSI, MACD, Moving Averages, Bollinger Bands
  • Fundamental Analysis: P/E, P/B, ROE, EPS, Dividend Yield, and more
  • Market Movers: Track top gainers and losers from IDX30
  • Smart Logging: All recommendations saved to logs/ for tracking
  • Seamless Integration: Works directly in Claude Code - just ask questions!

Quick Start

1. Install Dependencies

cd /Users/antariksa/Project/stock_ai_agent
pip install -r requirements.txt

2. Configure Claude Code

Add to your MCP settings file (~/.config/claude-code/mcp_settings.json or Claude Desktop config):

{
  "mcpServers": {
    "idx-stock-analysis": {
      "command": "python",
      "args": ["-m", "src.mcp_server"],
      "cwd": "/Users/antariksa/Project/stock_ai_agent"
    }
  }
}

Important: Update the cwd path to match your actual project location!

3. Restart Claude Code

Restart Claude Code to load the MCP server.

4. Start Analyzing!

Ask Claude Code questions like:

  • "What's the current price of BBCA?"
  • "Analyze BBRI technical indicators"
  • "Should I buy TLKM right now?"
  • "Show me today's top market movers"
  • "Compare BBCA and BMRI fundamentals"

MCP Tools Available

The server provides 7 tools that Claude Code can use:

  1. get_stock_price - Current price and basic info
  2. get_historical_data - Historical OHLCV data
  3. get_technical_indicators - RSI, MACD, MA, Bollinger Bands
  4. get_fundamentals - P/E, P/B, ROE, margins, etc.
  5. get_market_movers - Top gainers/losers from IDX30
  6. log_recommendation - Save buy/sell decisions
  7. get_recommendation_history - Review past recommendations

Market Hours

Indonesian Stock Exchange (IDX) - Western Indonesia Time (WIB):

  • Pre-open: 08:45-09:00
  • Session 1: 09:00-12:00
  • Break: 12:00-13:30
  • Session 2: 13:30-16:00

Best used during trading hours for real-time decisions.

Documentation

Project Structure

stock_ai_agent/
├── src/
│   └── mcp_server.py          # Main MCP server with 7 stock analysis tools
├── logs/                       # Auto-generated recommendation logs
│   └── recommendations_*.jsonl
├── QUICKSTART.md               # 5-minute setup guide
├── SETUP.md                    # Detailed setup instructions
├── EXAMPLES.md                 # Usage examples and sample queries
├── requirements.txt            # Python dependencies
├── pyproject.toml              # Project configuration
├── test_server.py              # Test suite
└── setup_env.sh                # Automated environment setup

How It Works

  1. MCP Server (src/mcp_server.py): Exposes 7 tools via Model Context Protocol
  2. Claude Code: Automatically calls these tools when you ask stock questions
  3. Data Source: Yahoo Finance (yfinance) - free, real-time Indonesian stock data
  4. Analysis: Technical indicators (ta library) + fundamental data
  5. Logging: All recommendations saved to logs/ directory

Popular Indonesian Stocks

| Sector | Stocks | |--------|--------| | Banking | BBCA, BBRI, BMRI, BBNI | | Telecom | TLKM, EXCL | | Consumer | UNVR, INDF, ICBP | | Auto | ASII, UNTR | | Mining | ADRO, PTBA, ANTM | | Cement | SMGR, INTP |

Contributing

Found a bug or want to add features?

  1. Fork the repository
  2. Make your changes
  3. Submit a pull request

Ideas for enhancements:

  • Add more Indonesian stock data sources (Stockbit API, IDX API)
  • Implement portfolio tracking and P&L calculation
  • Add news sentiment analysis
  • Create automated hourly alerts during market hours
  • Backtesting framework for recommendations

License

MIT License

stock_mcp

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.