Chart — AI 연결 (MCP)
1. Chart MCP란
MCP(Model Context Protocol)는 Claude 같은 AI 어시스턴트가 외부 도구를 쓰게 하는 공개 규격입니다. Chart의 MCP 서버를 연결하면 AI가 차트를 불러오고, 지표를 얹고, 추세선을 그리고, 전략을 돌려 보고, 내 서버 알림과 워치리스트를 다룰 수 있습니다. 주문·자동매매 기능은 없습니다 — 거래소 주문 도구를 제공하지 않습니다(엔진 안의 모의 트레이딩만 있습니다).
원격 서버 주소: https://chart-api.suseona.com/mcp
2. 연결 방법
① claude.ai · Claude Desktop 커스텀 커넥터 (OAuth, 권장)
- claude.ai → 설정 → 커넥터 → 커스텀 커넥터 추가를 엽니다.
- URL에
https://chart-api.suseona.com/mcp한 줄만 넣고 추가합니다. (모바일 앱의 커넥터도 같은 계정에 적용됩니다.) - 연결 버튼을 누르면 Chart 동의 화면이 열립니다. Google 계정으로 로그인한 뒤 앱 이름(앱이 직접 밝힌 이름이라 검증되지 않았습니다)과 이동할 주소(호스트)를 확인하고 허용을 누릅니다. 모르는 앱이면 거부하세요.
② Claude Code
claude mcp add --transport http chartcraft https://chart-api.suseona.com/mcp
처음 쓸 때 브라우저로 같은 동의 화면이 열립니다(OAuth 자동). 또는 앱 ☰ 메뉴(모바일은 더보기) → AI 연결 (MCP)에서 개인 액세스 토큰을 만들어 헤더로 쓸 수 있습니다.
claude mcp add --transport http chartcraft https://chart-api.suseona.com/mcp --header "Authorization: Bearer ccmcp_…"
③ 로컬 chartcraft-mcp (계정 없이, 오픈소스 빌드)
저장소를 받아 cargo build --release -p chartcraft-mcp 후 claude mcp add chartcraft -- <경로>/target/release/chartcraft-mcp. 내 컴퓨터 안에서만 돌며(인증 없음) 계정 도구와 실시간 제어는 없습니다.
3. 쓸 수 있는 도구
| 범주 | 예 |
|---|---|
| 차트 | 심볼(티커 또는 삼성전자 같은 정확한 종목명)·타임프레임 바꾸기, 차트 유형, 보이는 범위, 현재 상태 읽기. 시간은 에포크 ms 또는 ISO 8601(2026-11-30, 2026-11-30T09:00:00+09:00)로 줄 수 있고 응답에는 *_iso(UTC)가 함께 옵니다(chart_*) |
| 데이터 | OHLCV·시세·심볼 검색·여러 종목 시세(AAPL·005930처럼 접두 없이도 라우팅)(data_*, quote_*, symbol_*) |
| 지표·그리기 | 지표 추가·입력 변경(MACD·PPO는 periods로 빠른/느린/시그널 길이 지정), 추세선·가로줄·피보나치 등 그리기(indicator_*, draw_*) |
| 전략·리플레이 | 전략 백테스트, 스크립트 지표, 리플레이(strategy_*, script_*, replay_*) |
| 스크린샷 | 차트 PNG(capture_screenshot) |
| 계정(로그인 필요) | 서버 알림 만들기·관리 — 가격 알림과 지표 알림(RSI ≥ 70, 종가가 SMA 20을 교차, SMA 50이 SMA 200을 상향 교차 등; 수식·JS 지표는 앱에서만)(alert_*), 워치리스트·저장한 차트 읽기(watchlist_*, workspace_*), 경제 캘린더·실적 |
| 실시간 제어 | 내가 켜 둔 탭의 차트를 직접 조작·캡처(live_* — 각각 같은 이름의 일반 도구를 내 차트에서 실행) |
4. 권한(범위)
연결할 때 AI에게 줄 권한을 고를 수 있습니다. 동의 화면(또는 개인 액세스 토큰 만들기)에서 항목별로 켜고 끕니다.
| 권한 | 허용되는 일 |
|---|---|
chart (항상 포함) | AI의 작업용 차트에서 시세·지표·그리기·전략·스크린샷 (chart_*, data_*, indicator_*, draw_*, capture_screenshot 등) |
account:read | 알림 목록·기록, 워치리스트·저장한 워크스페이스 읽기 (alert_list·alert_get·alert_log·workspace_*·watchlist_*) |
account:write | 서버 알림 만들기·수정·일시정지·재개·삭제 (alert_create 등) |
live | 내가 연 차트를 AI가 직접 바꾸기 (live_*) — 되돌리기로 취소할 수 있지만 눈앞의 차트가 바뀌므로 믿는 앱에만 켜세요 |
허용하지 않은 권한의 도구는 목록에 나타나지 않고, 직접 호출해도 “해당 권한이 없다”는 오류를 돌려줍니다. 권한을 바꾸려면 앱 ☰ 메뉴(모바일은 더보기) → AI 연결 (MCP) → 연결된 앱에서 연결을 끊고 다시 연결하세요(권한 확대는 새 동의가 필요합니다). 이전에 연결한 앱·토큰은 전부 허용으로 그대로 동작합니다.
5. 실시간 제어와 안전장치
- 실시간 제어는 기본이 꺼져 있습니다. 앱 ☰ 메뉴(모바일은 더보기) → AI 연결 (MCP) → 실시간 제어 허용을 켠 브라우저 탭에서만 동작합니다(브라우저별 동의).
- 켜져 있는 동안 상태바에 AI 연결됨 배지가 보이고 끊기로 즉시 끌 수 있습니다. AI가 바꾼 내용은 토스트로 알려 주며 되돌리기로 취소할 수 있습니다.
- 여러 탭이면 가장 최근에 연결·선택한 탭 하나만 제어됩니다.
6. 한도
토큰(또는 연결)당 분당 60회·하루 2,000회 호출. 넘으면 429와 재시도 시간을 돌려줍니다. 동시에 열 수 있는 세션은 사용자당 3개입니다.
7. 연결 끊기
앱 ☰ 메뉴(모바일은 더보기) → AI 연결 (MCP) → 연결된 앱에서 연결 끊기를 누르면 그 앱의 접근 토큰이 즉시 무효가 되고 열려 있던 세션도 닫힙니다. 개인 액세스 토큰은 같은 화면의 목록에서 폐기합니다. 승인한 연결은 30일 동안 쓰지 않으면 만료됩니다.
8. 개인정보
- 서버가 보관하는 것: 연결(OAuth) 기록 — 앱 이름·연결 시각·마지막 사용 시각·계정 ID와 이메일, 토큰의 해시(원문 토큰은 저장하지 않습니다). 개인 액세스 토큰도 해시만 저장합니다.
- 호출 로그에는 도구 이름·소요 시간·성공 여부·사용자 ID 앞 8자만 남깁니다. 도구 인자(심볼·알림 조건 등)와 결과 내용은 남기지 않습니다.
- AI 앱(예: Anthropic의 Claude)이 도구 결과를 어떻게 처리하는지는 그 서비스의 정책을 따릅니다.
- 자세한 내용과 문의는 개인정보처리방침을 참고하세요.
Connect AI assistants (summary)
The Chart MCP server lets an AI assistant such as Claude load charts, add indicators, draw, run strategies, and manage your server alerts (price alerts and indicator alerts such as RSI ≥ 70 or SMA 50 crossing SMA 200; formula/JS indicators stay in the app) and watchlists. It has no order placement or auto-trading.
- claude.ai / Claude Desktop: Settings → Connectors → Add custom connector → enter
https://chart-api.suseona.com/mcp. You sign in with Google and approve on a Chart consent screen that shows the app's self-declared name and the host you will be redirected to — deny apps you do not recognise. - Claude Code:
claude mcp add --transport http chartcraft https://chart-api.suseona.com/mcp(OAuth opens in your browser), or use a personal access token from the app's ☰ menu (More on mobile) → AI connection (MCP) screen with--header "Authorization: Bearer …". - Local: build
chartcraft-mcpfrom the repository and add it as a stdio server (no account tools, no live control). - Live control is off by default and works only in a browser tab where you switched it on; a badge shows while connected and you can disconnect at any time.
- Limits: 60 calls/minute and 2,000/day per connection.
- Permissions: you choose what to grant when you connect (or create a token) —
chart(always: quotes, indicators, drawings, strategies, screenshots on the AI's own chart),account:read(alert lists/logs, watchlists, saved workspace),account:write(create/edit/pause/delete server alerts) andlive(change the chart you have open). Tools outside the granted permissions are not listed. A connector (OAuth) that calls one anyway gets an HTTP 403insufficient_scopechallenge naming the wider permission set (what it already has plus the missing one); a client that supports it re-opens the consent screen with that set pre-checked, and approving replaces the narrower connection with the wider one — nothing else to disconnect. A personal access token cannot re-consent: it answers with a "permission not granted" error, so create a new token that includes the permission (Account › AI 연결). The server also tells the AI which permission groups are hidden. Connections and tokens made before this existed keep full access. - Disconnect: ☰ menu (More on mobile) → AI connection (MCP) → Connected apps → Disconnect. Access tokens stop working immediately.
- Privacy: only token hashes are stored; call logs hold tool name, duration and outcome — never arguments or results. See the Privacy Policy.