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 Market summary for TASI or NOMU (optional index), including delay metadata when available
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"
  • "Show me NOMU market summary (index NOMUC is also accepted)"
  • "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.1.tar.gz (5.9 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sahmk_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sahmk_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 623cb76c16763a4d5d210d5e5cc34f43e1fc50117422a326a18d7145f0383b09
MD5 8f36002510c0329f539727ff4097e164
BLAKE2b-256 2e1189b70d2e3709c3b4a88bb17e4084db21b2ed39adfb80e0ba0f86b2fa77fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for sahmk_mcp-0.1.1.tar.gz:

Publisher: publish-pypi.yml on sahmk-sa/sahmk-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: sahmk_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sahmk_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07e80a14c605c11be6a55292cd615f7f2aeef2aee1db0fc4bc6bfae3f97b00e4
MD5 80dcbeb5e260199301b757bc0a6a35fa
BLAKE2b-256 ed6c772643c2f6dfba647ec7d1d31bba2732fc104cf9b2e38b334d88c7bbf56e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sahmk_mcp-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on sahmk-sa/sahmk-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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