HN

hpasic/nordnet-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

16 stars 9 forks 품질 82 트렌드 24MIT

Nordnet 포트폴리오 데이터에 대한 MCP 서버 읽기 전용

개요

Nordnet 포트폴리오 데이터에 대한 MCP 서버 읽기 전용. 그것은 Nordnet 계정, 위치, 무역, 균형, 및 도구는 Claude 코드, Claude 데스크탑 및 Cursor와 같은 MCP 호환 클라이언트에 / 연구. 중요 : -이 프로젝트는 비공식이며, Nordnet에 의해 승인, 또는 지원되지 않습니다. - - - 기존의 Nordnet 세션을 사용하여 QR 로그인 (아래) 또는 브라우저 세션 토큰을 통해 설치했습니다. - Nordnet 세션은 짧은 라이브 (시간의 몇 시간) 만약 왼쪽 아이들 — 하지만 서버는 실행을 유지 (상태 참조) 한대로 자신의 세션을 유지할 수 있습니다. - 토큰을 보관하거나 .env 파일을 공유하지 마십시오. 서버는 이제 자체에 로그인 할 수 있습니다. nordnet auth 도구 (또는 Nordnet 도구를 시도하십시오. 401은 모델을 호출합니다.) 및 QR 코드는 대화에 나타납니다. Nordnet 모바일 앱을 스캔하고 세션이 자동으로 설치됩니다. - 브라우저 DevTools, 쿠키를 복사하지 않습니다.

개요(AI 번역)

Nordnet 포트폴리오 데이터에 대한 MCP 서버 읽기 전용.

그것은 Nordnet 계정, 위치, 무역, 균형, 및 도구는 Claude 코드, Claude 데스크탑 및 Cursor와 같은 MCP 호환 클라이언트에 / 연구.

중요 :

  • 이 프로젝트는 비공식이며, Nordnet에 의해 승인, 또는 지원되지 않습니다.
  • 기존 Nordnet 세션을 사용하여 QR 로그인 (아래) 또는 브라우저 세션 토큰을 통해 설치했습니다.
  • Nordnet 세션은 짧은 라이브 (시간의 몇 시간) 만약 왼쪽 idle — 하지만 서버 실행을 유지하면서 자신의 세션을 유지 (상태 참조).
  • 토큰을 보관하거나 .env 파일을 공유하지 마십시오.

상태

서버는 이제 로그인 할 수 있습니다. nordnet_auth 도구 (또는 그냥 시도 Nordnet 도구 - 401은 모델을 호출합니다) 그리고 QR 코드가 나타납니다 대화. Nordnet 모바일 앱과 세션을 스캔하면 자동 — 브라우저 DevTools 없음, 쿠키를 복사하지. NORDNET_HOST] Nordnet 앱이 등록되어 있어야 합니다 (예: public.nordnet.no 노르웨이 계정의 경우): QR은 로그인 링크를 인코딩합니다. 그 시장의 도메인, 그리고 다른 시장에서 앱은 조용히 스캔을 무시합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

nordnet-mcp

Read-only MCP server for Nordnet portfolio data.

It exposes Nordnet accounts, positions, trades, balances, and instrument lookup/search to MCP-compatible clients such as Claude Code, Claude Desktop, and Cursor.

Important:

  • This project is unofficial and is not affiliated with, endorsed by, or supported by Nordnet.
  • It uses your existing Nordnet session, established either via QR login (below) or a browser session token.
  • Nordnet sessions are short-lived (a couple of hours) if left idle — but the server keeps its session alive on its own for as long as it keeps running (see Status).
  • Never commit your token or share your .env file.

Status

The server can now log itself in: call the nordnet_auth tool (or just try any Nordnet tool — a 401 tells the model to call it) and a QR code appears in the conversation. Scan it with the Nordnet mobile app and the session is established automatically — no browser DevTools, no copy-pasting a cookie. NORDNET_HOST must match the market your Nordnet app is registered in (e.g. public.nordnet.no for a Norwegian account): the QR encodes a login link on that market’s domain, and an app from another market silently ignores the scan. In MCP Apps-capable hosts this renders as a live QR image that rotates itself every 100 seconds (up to 3 codes / 5 minutes) if you haven’t scanned it yet, and once approved it disappears and sends a follow-up message so you don’t have to retype what you originally asked. Whether that finishes the loop entirely or just saves you the retyping depends on the host: some submit it immediately, others (observed: Claude Desktop) pre-fill it in the composer and leave sending it to you — in the latter case, a single Enter is all that’s left. On hosts without MCP Apps support (e.g. Claude Code), the QR is shown as ASCII art text instead of an image, and there’s no automatic polling — once you tell the model you’ve scanned and approved it, it calls nordnet_login_poll itself to finish the login.

A session obtained this way is kept in memory only — applied to the running server immediately, but never written to .env or anywhere else on disk. If the server process restarts for any reason, the token is gone and you’ll need to log in again; writing it back to .env would avoid that, but at a security cost (a bearer token sitting in a plaintext file) that isn’t worth it unless this turns out to be too disruptive in practice — that’s the tradeoff to revisit if so. If the App view itself gets re-mounted (e.g. reopening a conversation you’d already authenticated in), a QR is never shown for a session that’s still good — this is checked twice, both live against Nordnet (not just “is a token string present,” since a present-but-dead token shouldn’t count): once server-side, before nordnet_auth would otherwise generate a new order, and once again in the view itself before it ever displays whatever content it was handed, since that content could be a stale replay of

GitHub에서 전체 README 보기

설치

docker run --rm -i -e NORDNET_SESSION_TOKEN=your_token_here -e NORDNET_HOST=public.nordnet.se ghcr.io/hpasic/nordnet-mcp:latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "nordnet": { "command": "uv", "args": [ "run", "--directory", "/absolute/path/to/nordnet-mcp", "nordnet-mcp" ] } } }