Getting startedHow-to guideStrategy builderSupported elementsSupported assetsMCP serverAPI skill packChangelogFAQ

Connect CoinQuant to your assistant

Use the Model Context Protocol to read your research, save strategies and run historical backtests from a conversation.

Choose your client

Production · Streamable HTTP
https://mcp.coinquant.ai/mcp

Interactive example
Chat list response

Switch between sample account results.

{
  "chats": []
}

Connect your client

Choose the setup that matches how you access CoinQuant.

Connect your CoinQuant account in Claude

  1. Open Customize → Connectors in Claude. Select the CoinQuant connector your workspace owner added for this environment.
  2. Select Connect. In the browser, continue to CoinQuant, sign in and approve the connection.
  3. Open a fresh Claude chat with the connector enabled.

Check which account Claude connected

Claude receives the profile returned by get_me, including the signed-in email. This prompt limits what Claude displays in its reply. Replace EXPECTED_EMAIL with the email you use for CoinQuant and send it in the fresh chat.

Check the signed-in account
Use only CoinQuant’s get_me tool to compare the signed-in email with EXPECTED_EMAIL. Reply only with match or mismatch. Omit the email and all other account details from your reply.

Expected result · Claude replies match or mismatch. For a mismatch, reconnect the intended account and repeat the check.

Read your most recent chat

After a match, send this prompt to read one CoinQuant chat.

Read-only prompt
Use CoinQuant to list my most recent chat with a limit of one. Tell me if I have none.

Expected result · Expand Claude’s tool activity. Look for list_chats and a successful response. An empty result is valid.

Add CoinQuant to a Claude workspace

  1. Obtain a CoinQuant-registered OAuth client for the target environment through CoinQuant support. Use the Claude callback https://claude.ai/api/mcp/auth_callback.
  2. In Claude’s connector management, add a custom connector, name it for the environment and enter the server URL above.
  3. Choose Sign in now and Use your own OAuth client. Enter the client ID and secret only in Claude’s OAuth settings. Finish the setup and make the connector available to your members.

Follow the Claude member setup to confirm the signed-in account before reading any research. Claude’s connector guide ↗

Connect a client with a per-user bearer header

Use Streamable HTTP, the server URL above and an Authorization: Bearer header supplied by your client’s secret store. The Python example uses the official MCP SDK to make one read-only call.

Create a key in Service Accounts. Set COINQUANT_API_KEY_FILE to a private file containing the raw key.

Copy the Python connection check

In a Python 3.10+ terminal, create and activate an isolated environment, then install the tested SDK.

Install the Python SDK
python3 -m venv .coinquant-mcp
. .coinquant-mcp/bin/activate
python3 -m pip install 'mcp==1.30.0'

Run this connection check in the same terminal, with your key file set.

Run a read-only Python check
python3 - <<'PY'
"""First read from CoinQuant using the official MCP Python SDK."""
import asyncio
from datetime import timedelta
import json
import logging
import os
from pathlib import Path

import httpx
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client

endpoint = "https://mcp.coinquant.ai/mcp"


def read_key():
    try:
        key = Path(os.environ["COINQUANT_API_KEY_FILE"]).read_text(encoding="ascii").rstrip("\r\n")
    except (KeyError, OSError, UnicodeError):
        raise SystemExit("Set COINQUANT_API_KEY_FILE to a readable file containing one raw ASCII key.") from None
    if not key or any(not 33 <= ord(char) <= 126 for char in key):
        raise SystemExit("The key file must contain one raw ASCII key with no spaces or control characters.")
    return key


async def check():
    key = read_key()
    http_error = None

    async def remember_status(response):
        nonlocal http_error
        if response.status_code >= 300:
            http_error = response.status_code

    headers = {"Authorization": "Bearer " + key}
    try:
        async with httpx.AsyncClient(headers=headers, follow_redirects=False, timeout=45,
                                     event_hooks={"response": [remember_status]}) as http:
            async with streamable_http_client(endpoint, http_client=http) as (read, write, _):
                async with ClientSession(read, write, read_timeout_seconds=timedelta(seconds=45)) as session:
                    await session.initialize()
                    catalog = await session.list_tools()
                    if not any(tool.name == "list_chats" for tool in catalog.tools):
                        raise ValueError("Missing read tool")
                    reply = await session.call_tool("list_chats", {"limit": 1})
                    if reply.isError:
                        raise ValueError("Tool returned an error")
                    result = reply.structuredContent
                    if result is None:
                        result = json.loads(reply.content[0].text)
                    if isinstance(result, dict) and set(result) == {"result"}:
                        result = result["result"]
                    if not isinstance(result, dict) or not isinstance(result.get("chats"), list):
                        raise ValueError("Unexpected chat list")
    except Exception:
        if http_error in (401, 403):
            raise SystemExit(f"HTTP {http_error}. Check the key is active and belongs to this server's environment.") from None
        status = f"HTTP {http_error}. " if http_error else ""
        raise SystemExit(status + "Connection check failed. Verify the server URL and retry.") from None
    print("Connected. The read-only list_chats call succeeded.")


if __name__ == "__main__":
    logging.getLogger("mcp.client.streamable_http").setLevel(logging.CRITICAL)
    asyncio.run(check())
PY

Expected result · The client completes initialization, finds list_chats and makes a successful tool call.

Try a research workflow

These examples create private records and can consume credits. Review each request before running it.

Save a strategy
Strategy prompt
Use CoinQuant to save a private Binance spot BTCUSDT daily strategy. Enter on a 20/50 moving-average crossover and exit on the reverse. Show the saved version ID.

Check · Capture the version ID and read the saved version before starting a backtest.

Write and reopen a long report
Research prompt
Use CoinQuant to write and save a detailed BTC and ETH spot-market report with supporting evidence and limitations. Reopen it by report ID and summarize the findings.

Check · get_report returns the stored report by ID. After a disconnect, check the existing chat before retrying.

Run a historical backtest
Backtest prompt
Run one historical backtest on my saved strategy version VERSION_ID. Wait for completion, return the job ID and metrics, and retrieve the summary CSV.

Check · Poll the returned job ID. Retrieve results and exports after it completes.

Explore the tools

Search by tool name or task. The access filter shows which tools your credential can use.

get_meSigned-in user

Current signed-in account profile.

Required inputs · None

get_creditsSigned-in user

Current credit balance.

Required inputs · None

get_credit_usageSigned-in user

Credit usage over the selected period.

Required inputs · None

create_backtestAPI key or sign-in

New historical job ID and queue status.

Required inputs · strategy_version_id

list_backtestsAPI key or sign-in

Page of historical backtests with status.

Required inputs · None

get_backtestAPI key or sign-in

Status and summary of one job.

Required inputs · backtest_id

get_backtest_resultsAPI key or sign-in

Metrics, curves and a page of orders for a completed job.

Required inputs · backtest_id

compare_backtestsAPI key or sign-in

Side-by-side results for completed jobs.

Required inputs · backtest_ids

duplicate_backtestAPI key or sign-in

New job that repeats a saved backtest.

Required inputs · backtest_id

get_backtest_exportAPI key or sign-in

CSV text for a completed run’s summary or trades.

Required inputs · backtest_id

create_chatAPI key or sign-in

New chat, optionally with an initial user message.

Required inputs · None

patch_chatAPI key or sign-in

Chat with updated name, tags, star or archive state.

Required inputs · chat_id

list_chatsAPI key or sign-in

Page of your chats, most recently updated first.

Required inputs · None

get_chat_messagesAPI key or sign-in

Page of messages and assistant replies.

Required inputs · chat_id

append_chat_messageAPI key or sign-in

Stored user message. Generation requires a separate prompt.

Required inputs · chat_id, content

list_community_backtestsAPI key or sign-in

Page of backtests published by community members.

Required inputs · None

get_community_backtestAPI key or sign-in

Detail of one published community backtest.

Required inputs · backtest_id

list_community_leaderboardsAPI key or sign-in

Ranked leaderboard entries for a season.

Required inputs · None

get_community_meAPI key or sign-in

Your community profile and published-results summary.

Required inputs · None

list_community_activitiesAPI key or sign-in

Your community activity and its status.

Required inputs · None

run_promptAPI key or sign-in

CoinQuant’s generated answer and available saved artifact IDs.

Required inputs · message

stream_chat_messageAPI key or sign-in

Assistant’s reply to a follow-up message in an existing chat.

Required inputs · chat_id, content

list_reportsAPI key or sign-in

Page of research report summaries.

Required inputs · None

get_reportAPI key or sign-in

Saved report content, subject to the tool’s output limit.

Required inputs · report_id

create_strategy_from_chatAPI key or sign-in

Saved strategy and version from a chat’s draft.

Required inputs · chat_id

list_strategiesAPI key or sign-in

Page of strategies in your account.

Required inputs · None

get_strategyAPI key or sign-in

Saved strategy and its current state.

Required inputs · strategy_id

patch_strategyAPI key or sign-in

Strategy with updated name or description.

Required inputs · strategy_id

list_strategy_versionsAPI key or sign-in

Versions of one strategy.

Required inputs · strategy_id

get_strategy_versionAPI key or sign-in

One saved version and its strategy schema.

Required inputs · strategy_id, version_id

patch_strategy_versionAPI key or sign-in

Updated version title or description.

Required inputs · strategy_id, version_id

publish_strategy_versionAPI key or sign-in

Publishes the version to the wider CoinQuant community.

Required inputs · strategy_id, version_id

unpublish_strategy_versionAPI key or sign-in

Withdraws the version from the community.

Required inputs · strategy_id, version_id

list_templatesAPI key or sign-in

Page of ready-made strategy templates.

Required inputs · None

get_templateAPI key or sign-in

Details of one strategy template.

Required inputs · template_id

Troubleshooting

I can’t see the connector in Claude

Open the correct Claude workspace. Ask its owner to add or enable the connector for you. The owner needs a registered OAuth client for the selected environment.

Claude connected a different CoinQuant account

In Claude, open Customize → Connectors, select the CoinQuant connector for this environment and disconnect only that connector. Open a private or incognito window, or use a separate browser profile. Sign in to the same Claude workspace and reconnect it. At the CoinQuant sign-in screen, choose your intended account before approving access. Repeat the get_me check in a fresh chat.

Sign-in loops, or a key returns 401

Check the server URL, environment and callback. Reconnect the account in Claude. For a key-based client, check the key is active in Service Accounts.

A billing or account tool is missing

get_me, get_credits and get_credit_usage require a signed-in user. A service-account key cannot call them. Reconnect through OAuth if you need these tools.

I connected but can’t use any tools

In Claude, enable the connector in your chat and use the member account check above. In an API key client, use tools/list, then run list_chats to verify the key.

A long request timed out or hit a rate limit

For long requests, use a client that accepts text/event-stream and keeps reading heartbeats. Check the original chat, report or job ID before repeating work. Honor rate-limit retry delays and include the request ID when contacting support.