Skip to main content
With the halal.sh MCP server, an AI agent can call the compliance API as tools. Ask “is NVDA halal?” or “screen my portfolio”, and the agent answers with our determination, the ratios and the filings behind them. Every tool is read-only, so your client can run calls without asking you to confirm each one.

Connect

The hosted server is at this address and uses Streamable HTTP:
There are two ways to authenticate, depending on the client:
  • Sign in (the ChatGPT and Claude apps): Add the URL as a connector and sign in with your halal.sh account when prompted. There is no key to manage: the connector has the full universe on the Plus plan or the Developer plan, and the sandbox universe otherwise. It picks up a plan change within five minutes, without reconnecting.
  • API key (developer tools): Claude Code, Codex, Gemini CLI, Cursor and VS Code send the key as a Bearer header. Create a key: sandbox keys are free and limited to 12 instruments, and live keys, on the Plus plan or the Developer plan, have the full universe.

ChatGPT

  1. Open Settings, then Connectors, and under Advanced turn on Developer mode (custom connectors need it; it’s on paid ChatGPT plans).
  2. Choose Create, name it halal.sh, and paste https://api.halal.sh/mcp as the MCP server URL.
  3. Sign in to halal.sh when prompted, then turn on the connector from the tools menu in a chat.

Claude (claude.ai and Claude Desktop)

  1. Open Settings, then Connectors, and choose Add custom connector (on paid Claude plans).
  2. Paste https://api.halal.sh/mcp and choose Add.
  3. Click Connect and sign in with your halal.sh account. The tools then appear in the chat tools menu on web, desktop, and mobile.

Claude Code, Codex, Gemini CLI, Cursor, VS Code

Treat the key like a password: keep it in your client’s local config, never in shared or client-side code. The server is read-only, but every call counts against your plan’s rate limits.

Tools

Sandbox and full access

With a sandbox key, the tools work on the sandbox universe only (AAPL, MSFT, NVDA, GOOGL, JPM, GS, META, TSLA, JNJ, AMZN, SPY, HLAL). A live key, which comes with Plus or the Developer plan, works on the full stock and ETF universe. Signed-in (OAuth) connectors from the ChatGPT and Claude apps follow the same rule through your account: the full universe on Plus or the Developer plan, and the sandbox universe otherwise. Without Plus or the Developer plan, a live key and a signed-in connector both fall back to the sandbox universe until you renew one. Every ticker screen_portfolio doesn’t screen comes back in a list: unknown tickers in not_found, fund tickers in not_found and in etfs (look those up with get_etf), and, on the sandbox, symbols outside it in sandbox_restricted.
On Plus, live keys and signed-in connectors are for your own use: research, automations, and internal workflows. To show halal.sh results to the users of your product, you need the Developer plan, a separate subscription from Plus.

Reading the docs from your editor

This documentation is also an MCP server, at https://docs.halal.sh/mcp, for questions about using the API. To add it to your client, use Copy MCP server URL in the contextual menu at the top of any page.