HN

hpasic/nordnet-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

16 stars 9 forks 品質 82 トレンド 24MIT

Nordnet ポートフォリオデータ用読み取り専用 MCP サーバー

概要

Nordnet のポートフォリオデータの読み取り専用 MCP サーバー。 Nordnetアカウント、ポジション、取引、残高、およびClaude Code、Claude Desktop、およびCursorなどのMCP互換クライアントへのインストゥルメントルックアップ/searchを公開します。 重要: - このプロジェクトは非公式であり、Nordnetによって承認、承認、またはサポートされていません。 ・ 既存の Nordnet セッションを使用して、QR ログイン (below) またはブラウザーセッショントークンを介して設定します。 - Nordnet セッションは、左のアイドルの場合(数時間)短時間で動作しますが、サーバーは、実行し続ける限り、独自のセッションを維持します(ステータスを参照)。 - トークンをコミットしたり、.envファイルを共有したりしないでください。 サーバは、nordnet auth ツール(または単に Nordnet ツールを試してみてください。401 はモデルを呼び出します)、QR コードは会話に表示されます。 Nordnetモバイルアプリでスキャンし、セッションが自動的に確立されます。ブラウザのDevToolsは、Cookieをコピーペーストしません.

概要(AI 翻訳)

Nordnet のポートフォリオデータの読み取り専用 MCP サーバー。

Nordnetアカウント、ポジション、取引、残高、およびClaude Code、Claude Desktop、およびCursorなどのMCP互換クライアントへのインストゥルメントルックアップ/searchを公開します。

重要:

  • 本プロジェクトは非公式であり、Nordnetの提携、終了、またはサポートされていません。
  • 既存のNordnetセッションを使用して、QRログイン(below)またはブラウザセッショントークンを介して確立します。
  • Nordnet セッションは、左の IDle がサーバーの場合、短時間(数時間)です。 実行し続ける限り、セッションを自分で生き続ける(ステータスを参照)。
  • トークンをコミットしたり、[.env]ファイルを共有しないでください。

ステータス

サーバは次のようにログアウトできます: [nordnet_auth]] ツールを呼び出します(または単に試してみてください Nordnetツール — 401 はモデルを呼び出して、QR コードが表示される インタビュー Nordnetモバイルアプリでスキャンし、セッションが確立 自動的に — ブラウザー DevTools なし、Cookie のコピーペーストなし。 [NORDNET_HOST Nordnetアプリが登録されている市場(例: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" ] } } }