Viewing: AI & Agents

AI & Agents

Use SAHMK inside ChatGPT, Claude.ai, Claude Code (hosted MCP), or Claude Desktop and Cursor (local MCP). Hosted and local MCP both use your existing SAHMK subscription, permissions, and quota. For direct agent consumption, use the MCP server for tool calling and/api-docs.mdfor machine-readable API docs.

ChatGPT

SAHMK is listed in the ChatGPT Plugins Directory. Add it from the public listing.

You need a SAHMK developer account and an API key. Create an account or open API Keys if you already have one.

Add SAHMK to ChatGPT
  1. Open the SAHMK listing in the ChatGPT Plugins Directory.
  2. Add or connect SAHMK.
  3. Sign in to SAHMK.
  4. Select an API key and allow access.
  5. Start a conversation and select @SAHMK.

Usage follows your SAHMK subscription, permissions, and daily quota. Real-time data is available only when your plan includes it.

Example:

ما سعر سهم أرامكو الآن، وما حجم التداول وأفضل سعري طلب وعرض؟

Full walkthrough: MCP quick start tutorial

Claude.ai

SAHMK is listed in the Claude directory. Add it from the public listing.

You need a SAHMK developer account and an API key. Create an account or open API Keys if you already have one.

Add SAHMK to Claude
  1. Open the SAHMK listing in the Claude directory.
  2. Sign in to Claude and add SAHMK.
  3. Sign in to SAHMK.
  4. Select an API key and allow access.
  5. In a conversation, Claude will automatically use SAHMK tools when relevant.

Usage follows your SAHMK subscription, permissions, and daily quota. Real-time data is available only when your plan includes it.

Example:

ما سعر سهم أرامكو الآن، وما حجم التداول وأفضل سعري طلب وعرض؟

Claude Code (CLI)

Connect Claude Code CLI to SAHMK over HTTPS. No Python install or local server required.

Add the hosted MCP server:

bash
claude mcp add --transport http sahmk https://mcp.sahmk.sa/mcp

Verify the server is registered:

bash
claude mcp list
  1. Run the add command above in your terminal.
  2. Inside a Claude Code session, use /mcp to complete OAuth and authorize SAHMK.
  3. Select your SAHMK API key when prompted.

You can add --scope user to make the server available for all projects.

Local MCP

local

Install the Python package for local MCP with Claude Desktop and Cursor (stdio-based).

bash
pip install -U sahmk-mcp

If MCP tools reject newer params (for example historical interval options), run pip install -U sahmk-mcp and restart your MCP client.

Package: pypi.org/project/sahmk-mcp · MCP quick start tutorial

Claude Desktop

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

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

Cursor

Add to your project's .cursor/mcp.json

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

Use this when: your team wants SAHMK available inside AI workflows, research assistants, or agentic tools without building extra integration glue first.

Use companies_list for symbol discovery (`search`, `market`, `limit`, `offset`) before quote tools.

Last updated on