blinkxmcp
Connect your BlinkX account to view holdings, margins, and profile.
Что умеет
- Login: Open the BlinkX device login flow (clickable link).
- Get Holdings: Fetch user holdings after successful login.
- Get User Profile: Fetch the BlinkX user profile using the stored session token.
Какие данные видит
Нужен ли аккаунт
Не нужен: сервер работает без входа
Connect your BlinkX account to view holdings, margins, and profile. Monitor markets with quotes, instrument search, and historical candles. Place and track orders, or backtest strategies and even run strategies real time.
Как подключить
Как подключить blinkxmcp к Claude
Адрес сервера, который нужно вставить в настройках Claude:
https://blinkxmcp--ai.run.tools
- Откройте Claude (сайт claude.ai или приложение для компьютера).
- Перейдите в Настройки → Коннекторы (в английском интерфейсе: Settings → Connectors).
- Нажмите Добавить пользовательский коннектор (Add custom connector).
- Вставьте адрес сервера, скопированный ниже, в поле URL удалённого MCP-сервера и нажмите Добавить.
- В чате нажмите + → Коннекторы и включите новый коннектор.
Пользовательские коннекторы доступны на тарифах Free, Pro, Max, Team и Enterprise. На Free можно добавить только один. В Team и Enterprise коннектор сначала добавляет владелец организации в Настройки организации → Коннекторы.
Авторизация
После нажатия Добавить откроется окно входа в сервис. Войдите под своим аккаунтом и подтвердите доступ. Пароль Claude не видит.
Как подключить blinkxmcp к ChatGPT
Адрес сервера, который нужно вставить в настройках ChatGPT:
https://blinkxmcp--ai.run.tools
- Откройте ChatGPT в браузере (chatgpt.com). Нужен тариф Plus, Pro, Business, Enterprise или Edu.
- Один раз включите режим разработчика: Настройки → Приложения → Дополнительные настройки → Режим разработчика (Settings → Apps → Advanced settings → Developer mode).
- Откройте Настройки → Коннекторы и нажмите Создать (Create).
- Заполните форму: Название (любое), Описание (одна фраза, что делает сервис), URL MCP-сервера (скопируйте ниже).
- В поле Аутентификация выберите OAuth, если сервис требует вход, иначе Нет. Нажмите Создать.
- В новом чате откройте + → Приложения/Коннекторы и включите коннектор.
Название раздела у OpenAI менялось (Connectors → Apps/Plugins). Если пункт называется иначе, ищите «режим разработчика» в настройках. В рабочих пространствах Business/Enterprise администратор должен разрешить пользовательские коннекторы.
Авторизация
При первом использовании ChatGPT откроет окно входа в сервис. Войдите и подтвердите доступ.
Как подключить blinkxmcp к Cursor
Адрес сервера, который нужно вставить в настройках Cursor:
https://blinkxmcp--ai.run.tools
Быстрый способ: нажмите кнопку Открыть в Cursor ниже, Cursor сам предложит добавить сервер.
Вручную:
- В Cursor откройте Settings → Cursor Settings → MCP и нажмите Add new global MCP server.
- Вставьте JSON, скопированный ниже, в открывшийся файл
~/.cursor/mcp.json(для одного проекта:.cursor/mcp.jsonв корне проекта). - Сохраните файл. Сервер появится в списке MCP; при необходимости пройдите авторизацию по кнопке рядом с ним.
Авторизация
Если сервис требует вход, рядом с сервером в списке MCP появится кнопка авторизации.
Список инструментов сервера (12)
Технические названия из tools/list. Нужны только разработчикам.
| login | Open the BlinkX device login flow (clickable link). |
| get_holdings | Fetch user holdings after successful login. |
| get_user_profile | Fetch the BlinkX user profile using the stored session token. |
| get_user_margins | Fetch the BlinkX user margin details using the stored session token. |
| get_ltp | Retrieve BlinkX quotes for one or more instruments. Supported quote types: - "" (or None): full market quote (`/quote`) - "full": alias for full market quote (`/quote`) - "ohlc": OHLC quote (`/quote/ohlc`) - "ltp": last traded price quote (`/quote/ltp`) Instruments format: NSE:NIFTY,BSE:BANKNIFTY no suffix like -EQ or prefix like a number Example: get_ltp(instruments=["NSE:NIFTY", "BSE:BANKNIFTY"], quote_type="ltp") |
| get_instruments | Fetch and parse the BlinkX instruments list (CSV format). Example: get_instruments(search="RELIANCE") |
| get_historical_candles | Fetch historical candle data for a specific instrument from BlinkX SmartAPI. use get_instruments to get the instrument_token Example: get_historical_candles( instrument_token="1594_NSE", from_time="2025-10-29+10:02:03", to_time="2025-10-29+15:00:00", interval="minute" ) |
| place_order | Place an order using BlinkX SmartAPI (regular order). Always Confirm from user before placing order Example: place_order(tradingsymbol="RELIANCE-EQ", quantity=5, price=2800) |
| get_orders | Fetch all orders or a specific order by ID from BlinkX SmartAPI. Example: get_orders() → Fetch all orders get_orders(order_id="251107000000021") → Fetch specific order |
| listen | |
| run_strategy | Execute a Python strategy code asynchronously. The code can: - Read live prices from LTP_STORE using: key = f"{scrip_code}_{exchange}" - Place orders using the async function func_place_order: - subscribe(scrip_code, exchange) → async function to subscribe to a symbol - unsubscribe(scrip_code, exchange) → async function to unsubscribe from a symbol - get_token(session_id: str) -> to get token for order placement, session id always to be sent by ai agent, possible output {"status": "ok", "access_token": access_token} or return {"status": "error", "access_token": None, "message": "Session ID not found in tokens file"} Arguments for func_place_order: - api_url: string, API endpoint (default: BlinkX regular order URL) - token: string, authentication token - tradingsymbol: string, symbol of the instrument (required) - exchange: string, exchange (e.g., NSE, BSE) - transaction_type: BUY or SELL - order_type: LIMIT or MARKET - quantity: int, number of shares/contracts - product: string, product type - validity: string, DAY or IOC - price: float, price for LIMIT orders Example strategy code: key = f'-1_NSE' ltp = LTP_STORE.get(key, 0) if ltp > 26100: await func_place_order(tradingsymbol='-1', exchange='NSE', transaction_type='BUY', price=ltp, quantity=1) always unsubscribe to symbol after placing order and always ensure proper logging for every iteration to get status of execution in format session ID: "Required logs" and use default logging ie already existing 'logger' |
| run_backtest | Run a custom BACKTEST strategy provided by the AI agent using historical data fetched from BlinkX SmartAPI. historical data will be available in variable historical_data in format historical_data.append({ "timestamp": candle[0], # The timestamp is the first element "open": candle[1], # Open is the second element "high": candle[2], # High is the third element "low": candle[3], # Low is the fourth element "close": candle[4], # Close is the fifth element "volume": candle[5] # Volume is the sixth element }) and for recording trades call record_trade(side: str, price: float, qty: int) that stores trades in variable RESULTS = {"trades": [], "metrics": {}} this variable will already be defined and can be read as it is Inputs: --------- backtest_code : str The Python code written by the AI agent. The code will be wrapped inside an async function and executed. instrument_token : str The instrument token to fetch historical candle data. from_time : str The starting timestamp for fetching historical candles (e.g., "2025-10-29+10:02:03"). to_time : str The ending timestamp for fetching historical candles (e.g., "2025-10-29+15:00:00"). session_id : str The session ID for fetching the token needed to call the API. Returns: -------- dict : The result of the backtest, including trade records and metrics. |