Tossinvest CLI

Developer tools

공식 API에 없는 30+ 기능까지, 터미널과 AI에서 쓰세요. 토스증권 비공식 CLI·MCP.

Your AI app calls the Tossinvest CLI MCP server, which does the developer tools work and sends the result back to the chat.

About Tossinvest CLI

Tossinvest CLI is a community MCP server from JungHoonGhae, filed in our directory under developer tools. 공식 API에 없는 30+ 기능까지, 터미널과 AI에서 쓰세요. 토스증권 비공식 CLI·MCP.

At a glance

Publisher
JungHoonGhae (community)
Runs
See the README for setup
Written in
Go
License
MIT
GitHub stars
524

How to set up Tossinvest CLI

  1. Follow the install steps in the Tossinvest CLI README; it is written in Go, so have that toolchain ready.
  2. Check the Tossinvest CLI README for keys or settings; the registry lists none that Tossinvest CLI requires.
  3. Add Tossinvest CLI to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Tossinvest CLI tools to confirm the connection.
  5. Run one read-only task with Tossinvest CLI first, and keep your app asking before each tool call until the results look right.

Tossinvest CLI compared with similar servers

  • Unprompted by mocasus has fewer GitHub stars than Tossinvest CLI (524 against 524); both are community servers, and both run locally.
  • Agent Cockpit by chutingyean has more GitHub stars than Tossinvest CLI (525 against 524); both are community servers, and both run locally.
  • Appium by appium has fewer GitHub stars than Tossinvest CLI (523 against 524); both are community servers, and both run locally.

Before you connect Tossinvest CLI

  • Give Tossinvest CLI its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Tossinvest CLI tool call until you trust what it does with them.
  • Treat text that Tossinvest CLI fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Tossinvest CLI on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Tossinvest CLI

How marketing and sales teams put Tossinvest CLI to work, by company size. Pick the size closest to yours and start Tossinvest CLI on one use case.

Small business

  • A small business with a developer can use Tossinvest CLI to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Tossinvest CLI to explain and fix a marketing site issue without context switching between tools.
  • Tossinvest CLI runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Tossinvest CLI to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Tossinvest CLI to keep scripts and automations documented and versioned as they change.
  • Start Tossinvest CLI on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Tossinvest CLI with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Tossinvest CLI so web and marketing engineering share one reviewed way of working with AI.
  • Tossinvest CLI is a community server, so have security review the code and pin a version before Tossinvest CLI touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Tossinvest CLI README

From JungHoonGhae/tossinvest-cli on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

한국어 · English

tossinvest-cli

공식 API에 없는 투자 정보까지, 내 AI에게.
종목 탐색부터 자산·손익·세금·관심종목 관리까지, tossctl 하나로.

빠른 시작 · 더 할 수 있는 일 · AI 연결 · 주문 전 확인 · 문서

[!WARNING] 이 프로젝트는 토스증권 공식 제품이 아닙니다. 공식 Open API 외 기능은 토스증권 웹 내부 API를 비공식적으로 사용하며, 이용약관 위반에 해당할 수 있고 예고 없이 변경될 수 있습니다. 계좌 제한·손실 등 사용 결과는 사용자 본인의 책임입니다.

공식 API에 없는 기능까지, tossctl로

tossctl은 공식 API에 없는 30가지 이상의 기능을 내 AI와 자동화에 연결합니다. 종목을 찾는 일부터 내 자산의 변화와 세금 자료를 확인하는 일까지 한곳에서 다루세요.

기능별 비교 보기
더 할 수 있는 일 공식 Open API tossctl에서 연결하는 기능
종목 발굴·분석 미지원 토스 AI 시그널·등락 이유·조건검색·업종별 분석
뉴스·투자 일정 확인 미지원 보유·관심종목 뉴스·어닝콜·주요 경제지표 일정
내 자산·성과 모아 보기 미지원 전체 계좌 합산·평가 이력·배당·기간별 실현손익
세금·추가 수익 확인 미지원 해외 양도소득·예탁금 이자·주식대여 예상 수익
내 투자 관리 미지원 관심종목 폴더·목표가 알림·숨긴 종목·주식모으기 조회

“잔고가 얼마야?”에서 “내 자산 변화와 받은 배당, 보유 종목 뉴스까지 정리해 줘”로. 앱에서 따로 확인하던 정보를 이제 내 AI에게 요청하세요.

위 추가 기능은 WTS(토스증권 웹 내부 API)를 사용합니다. 지원 대상은 토스증권이며, 일반 토스뱅킹·카드 소비 내역은 포함하지 않습니다. 전체 기능 비교 →

빠른 시작

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/JungHoonGhae/tossinvest-cli/main/install.sh | sh
tossctl auth login --phone
tossctl account summary --output json

이름·생년월일·휴대폰 번호를 입력하면 토스 앱으로 승인 알림이 갑니다. 알림을 승인한 뒤 이 기기 로그인 유지까지 승인하세요. 입력한 정보는 토스증권 로그인 화면에만 전달하고 저장하지 않습니다. 브라우저 QR 로그인은 tossctl auth login, 링크는 tossctl auth login --link입니다.

Windows · Homebrew · 공식 API 연결

Windows PowerShell에서 설치한 뒤 위의 로그인·조회 명령을 실행하세요.

irm https://raw.githubusercontent.com/JungHoonGhae/tossinvest-cli/main/install.ps1 | iex

공식 Open API 키를 연결하려면(웹 로그인 후):

tossctl openapi setup   # 기존 키 연결 · 저장해 둔 Secret 입력 · 새 키 발급 중 안내
tossctl openapi status

키와 Secret을 이미 갖고 있다면 tossctl openapi login으로 직접 등록할 수도 있습니다.

Homebrew·소스 빌드는 설치 문서, 인증·연결 문제는 tossctl doctor --report를 참고하세요.

설치부터 첫 조회까지, 데모

이렇게 사용하세요

# 시장 살펴보기
tossctl quote flows A005930
tossctl market signals

# 내 배당 확인하기
tossctl portfolio dividends

# 이번 달 이전의 완료·취소 주문도 확인하기
tossctl orders completed --all-dates --size 50

# 보유 종목을 스크립트로 넘기기
tossctl portfolio positions --output json

위 수급 명령은 WTS를 사용하며, 공식 API의 투자자별 매매동향 조회도 별도로 지원합니다. AI 시그널·배당 등 추가 기능의 사용법은 명령 레퍼런스에서 확인하세요.

실시간 구독 · API 감시 · 로컬 이력
# 전체 계좌 자산과 보유 종목 브리핑
tossctl account overview
tossctl portfolio briefing

# 실시간 체결 구독과 API 변경 감시
tossctl stream --trade A005930
tossctl monitor api           # 읽기 전용 점검; 통과 0, 실패 1

tossctl history sync로 보유 종목·거래 내역 수집을 미리 확인할 수 있습니다. 저장 후 history list, history search, history compare는 오프라인으로 동작합니다.

--fields symbol,quantity --compact로 필요한 JSON 필드만 받으세요. 로컬 이력·브리핑 가이드 →

AI와 함께 사용하기

설치한 tossctl을 AI 앱에 연결하면 말로 요청할 수 있습니다. Claude Code·Codex·Cursor에서 MCP 연결을 지원합니다.

Claude Code에 MCP를 등록하려면:

claude mcp add tossctl tossctl mcp

연결한 에이전트에 이렇게 요청하세요.

내 자산 변화와 받은 배당을 정리하고, 보유 종목 뉴스도 함께 보여줘.

Codex·Cursor 등 앱별 등록 방법은 MCP 가이드를 참고하세요.

(선택) 에이전트 스킬. 스킬을 지원하는 에이전트(Claude Code 등)라면, 오퍼레이션 탐색·인증·안전 규칙(읽기 우선·거래 게이트·실계좌 데이터 비노출)을 담은 tossctl 스킬을 설치하면 더 정확하게 동작합니다. CLI가 이미 있으면 바이너리에 내장된 스킬을 바로 설치할 수 있고(오프라인·버전 일치), 없으면 curl 한 줄로도 됩니다. 설치·동기화는 skills/ 참고:

tossctl skill install                                                                              # CLI 내장본 설치
curl -fsSL https://raw.githubusercontent.com/JungHoonGhae/tossinvest-cli/main/skills/install.sh | sh  # CLI 없이
다른 AI 앱에 연결하기, MCP 설정

사용하는 AI 앱이 아래 형식의 MCP 설정을 지원하면 추가하세요.

{
  "mcpServers": {
    "tossinvest": { "command": "tossctl", "args": ["mcp"] }
  }
}
AI 에이전트에 MCP 연결, 데모

주문 전 확인하세요

[!IMPORTANT] 실거래는 기본적으로 꺼져 있습니다. 에이전트는 주문을 미리보기합니다. 실제 주문은 사람이 검토·승인하고 실행하세요.

tossctl order preview --symbol AAPL --side buy --qty 1 --price 200
# 미리보기만 실행합니다. 실제 주문은 사람이 결과와 확인 토큰을 검토한 뒤 진행하세요.
  • 주문 내용 확인: 종목·수량·가격을 미리보기에서 확인한 뒤 직접 승인하고 실행하세요.
  • 관심종목·알림 변경: 무엇이 바뀌는지 미리 확인하고 승인하세요.
  • 전송 결과를 모를 때: 다시 주문하기 전에 주문 상태부터 확인하세요.
미국 옵션 모의투자, 실험 기능

아직 안정화 중이며 기본적으로 숨겨져 있습니다. 활성화해도 토스증권의 이용 자격을 별도로 충족해야 합니다. 모의투자와 실거래의 잔고·주문은 분리되고, 모의 주문 승인이 실거래 승인으로 이어지지 않습니다. 설정과 제한은 지원 범위에서 확인하세요.

거래를 활성화하는 방법과 확인 절차는 안전 가이드를 참고하세요.

문서

문서 내용
빠른 시작 설치 후 첫 조회까지
명령 레퍼런스 전체 CLI 명령과 예시
지원 범위 공식 API·WTS 기능 비교
AI 앱 연결 Claude Code·Codex·Cursor 설정
안전 가이드 실제 주문 전 설정과 확인 절차

문제나 제안은 Issues에 남겨주세요. 보안 문제는 SECURITY.md를 참고하세요.

스폰서십 · 후원

스폰서십·브랜드 노출에 관심이 있다면 support@remodule.dev로 연락해 주세요.

현재 1분이 제 오픈소스 작업을 후원하고 있습니다 (일회성 포함). 후원은 tossinvest-cli를 포함한 제 작업 전반에 쓰입니다.

Contributors

기여해 주신 모든 분께 감사합니다. 참여 방법은 CONTRIBUTING.md를 참고하세요.

Star History

License

MIT

Questions about Tossinvest CLI

What is the Tossinvest CLI MCP server?

공식 API에 없는 30+ 기능까지, 터미널과 AI에서 쓰세요. 토스증권 비공식 CLI·MCP. Tossinvest CLI is maintained by JungHoonGhae on GitHub at JungHoonGhae/tossinvest-cli, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Tossinvest CLI MCP server?

Tossinvest CLI doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (JungHoonGhae/tossinvest-cli). Like most servers, Tossinvest CLI ends with a command or URL you paste into your AI app's MCP config.

Does Tossinvest CLI need an API key?

The registry lists no required keys for Tossinvest CLI. Check the Tossinvest CLI README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Tossinvest CLI an official MCP server?

No. Tossinvest CLI is a community server maintained by JungHoonGhae. Community servers can be excellent; read the code and the open issues before you give Tossinvest CLI access to company data.

What license is Tossinvest CLI under?

Tossinvest CLI is released under the MIT license, according to its GitHub repository. The license covers the code of Tossinvest CLI; the service it connects to has its own terms.