Developer Docs

Connect via Model Context Protocol

Integrate Stoploss directly into your AI workflow. Give Claude Desktop or Cursor native access to Indian stock market screening and analytics.

1

Generate an API Key

You'll need a Stoploss API key to authenticate your MCP server requests. You can generate a new key from your dashboard.

Generate Key
2

Claude Desktop Configuration

Add the Stoploss MCP server to your Claude Desktop configuration file. The file is located at:

~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stoploss": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/Financial-Analyst/stoploss-mcp",
        "run",
        "stoploss-mcp"
      ],
      "env": {
        "STOPLOSS_API_KEY": "your_api_key_here"
      }
    }
  }
}
3

Cursor Configuration

You can also configure Cursor to use the Stoploss MCP server natively within the AI pane settings.

Cursor MCP Settings
{
  "mcpServers": {
    "stoploss": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/Financial-Analyst/stoploss-mcp",
        "run",
        "stoploss-mcp"
      ],
      "env": {
        "STOPLOSS_API_KEY": "your_api_key_here"
      }
    }
  }
}