Skip to main content

Official MCP server for Sahmk — AI agent access to Saudi market data, company profiles, and historical market data.

Project description

sahmk-mcp

Official MCP server for Sahmk — gives AI agents access to real-time and historical Saudi stock market (Tadawul) data.

Tools

Tool Description
get_quote Real-time quote for a single stock (price, change, volume, liquidity)
get_quotes Batch quotes for multiple stocks (up to 50)
get_market_summary TASI index, volume, advancing/declining, market mood
get_company Company profile, sector, fundamentals
get_historical Historical OHLCV data (daily/weekly/monthly)

Get Your API Key

  1. Sign up at sahmk.sa/developers
  2. Go to Dashboard → API Keys → Create Key
  3. Copy your key (starts with shmk_live_ or shmk_test_)

Installation

pip install sahmk-mcp

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "sahmk": {
      "command": "sahmk-mcp",
      "env": {
        "SAHMK_API_KEY": "your_api_key"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "sahmk": {
      "command": "sahmk-mcp",
      "env": {
        "SAHMK_API_KEY": "your_api_key"
      }
    }
  }
}

Running Directly

export SAHMK_API_KEY="your_api_key"
sahmk-mcp

Example Prompts

  • "What's the current price of Aramco (2222)?"
  • "Compare 2222 and 1120"
  • "Show me the Saudi market summary"
  • "Get historical prices for Al Rajhi Bank (1120) for the last 3 months"
  • "Tell me about STC (7010)"

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sahmk_mcp-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sahmk_mcp-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file sahmk_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: sahmk_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sahmk_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f35bf1e5ff60579661765b8f51548017bc4ef68e9ab6f64a5b30b343eea69f1
MD5 b8cbf0ecf1309b9b4d78435f883ba1d4
BLAKE2b-256 995a88becf9fd7a2e73547a3a80269b493a0031532f15fbc5a074f56f2e2af8a

See more details on using hashes here.

File details

Details for the file sahmk_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sahmk_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sahmk_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2acc7f42462854f8213d09daece79ec51142c7a748b38ff62bf92e68e3cf7503
MD5 47443e198911b90bc0bb0cd5b299eb17
BLAKE2b-256 f10d60038127a5250ecb351823ef869dcbb22e5a26cca45263f07d5401492369

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page