
Nordnet Portfolio
io.github.hpasic由 GitHub 帳號 hpasic 發布v0.1.0更新於 Oct 26, 2026
Read-only Nordnet brokerage data: accounts, positions, trades, balances, orders, instruments.
發布方自己的服務:PortfolioFit
概覽
唯讀的 Nordnet 券商資料 MCP 伺服器,讓助理查看帳戶、持倉、成交、餘額、委託單與金融商品資訊。
- 可以做什麼
- 列出帳戶及其類型與 ID,讀取餘額與購買力
- 檢視含損益的持倉、已成交交易、各幣別餘額、有效委託單與當日交易
- 依 ISIN 或市場 ID 查詢金融商品、批次取得商品詳情、以關鍵字搜尋股票並確認是否可交易
- 取得國家清單、商品類型與搜尋篩選屬性等參考資料
- 發起 QR 碼登入並輪詢待處理的登入以完成登入
- 適用情境
- 適合讓助理回答關於你自己 Nordnet 投資組合的問題,例如瑞典、挪威、丹麥或芬蘭帳戶的持倉、報酬、近期成交、未完成委託或商品研究,不必離開對話。它為唯讀,適合分析與報告,不適合下單交易。
- 執行需求
- 以本機 Python 命令列(uv)或 Docker 映像執行,也可作為 Claude Desktop 擴充功能安裝。必須設定 NORDNET_HOST,且需與你的市場相符(public.nordnet.se、.no、.dk 或 .fi)。驗證方式為透過 Nordnet 手機應用程式掃 QR 碼登入,或手動提供 NORDNET_SESSION_TOKEN;NORDNET_CLIENT_ID=NEXT 為選用。需要能連線至 Nordnet 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nordnet Portfolio,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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
.envfile.
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
a past result rather than a fresh call. Either way you just get a quiet "Already logged
in" instead of a pointless fresh QR.
Once logged in, the server also keeps the session alive on its own for as long as it keeps running, the same way a browser tab left open on nordnet.se would — so you generally won't need to re-authenticate just from being idle. This only helps while the server process is actually running; stop it for longer than Nordnet's idle window and you'll need to log in again next time it starts.
If you'd rather not use QR login, you can still provide a session token manually — see Manual token setup.
Features
- Read-only access to Nordnet portfolio/account data
- 16 MCP tools across accounts, instruments, reference data, and login
- QR-code login — no manual token extraction needed
- Supports Nordnet Sweden, Norway, Denmark, and Finland hosts
- Environment-variable based setup
- Packaged as a Python CLI entrypoint:
nordnet-mcp - One-click Claude Desktop Extension for non-technical users
Quickstart
1. Install uv
If you do not already have uv:
2. Set your market
Create a .env file in the working directory used to launch the server (typically the repo root when using uv run --directory ...):
NORDNET_CLIENT_ID is optional. Nordnet session IDs appear to be tied to the
client that created them. If Nordnet responds with NEXT_INVALID_SESSION, add
NORDNET_CLIENT_ID=NEXT and restart the server.
Supported hosts:
public.nordnet.sepublic.nordnet.nopublic.nordnet.dkpublic.nordnet.fi
NORDNET_SESSION_TOKEN doesn't need to be set up front — the QR login flow (see
Status above) gets you a session without it, kept in memory for the life of the server
process. If you'd rather not rely on that, set NORDNET_SESSION_TOKEN here yourself;
see Manual token setup.
3. Run the server locally
From a local clone:
If your .env is not in the repo root, export the variables in your shell before starting the server.
MCP client setup
Claude Code
Claude Desktop / generic stdio MCP clients
Claude Desktop / generic stdio MCP clients (Docker)
Notes:
- Replace
/absolute/path/to/nordnet-mcpwith your local clone path. - Supplying credentials through the MCP client's
envblock is often the easiest option. - If Nordnet responds with
NEXT_INVALID_SESSION, add"NORDNET_CLIENT_ID": "NEXT"to theenvblock (or-e NORDNET_CLIENT_ID=NEXTfor Docker) — see the note above. - When the session expires, either call
nordnet_authagain or refresh the token manually and restart the server.
Manual token setup
If you'd rather not rely on the QR flow, you can provide a session token yourself:
- Log into
nordnet.se(or your local Nordnet domain) in your browser. - Open DevTools.
- Go to Application/Storage → Cookies.
- Select the Nordnet domain.
- Find the cookie named
NNX_SESSION_ID. - Copy its value and set it as
NORDNET_SESSION_TOKENin.env(or the MCP client'senvblock). - It will usually look like a UUID-style value such as
7f3a91c2-5648-4dbe-8a17-29c4e6b1f053.
Claude Desktop Extension (easiest — no technical setup)
If you just use Claude Desktop and aren't comfortable with terminals, config files, or Docker, this is the option for you: a one-click install, no separate software of any kind.
- Download
nordnet-mcp.mcpbfrom the Releases page. - Open Claude Desktop → Settings → Extensions, and drag the downloaded file in (or double-click it, depending on your OS).
- Click Install. You'll be asked which Nordnet market you're on — pick your country and confirm.
- Ask Claude about your Nordnet account. It'll show you a QR code the first time; scan it with the Nordnet mobile app to finish signing in.
That's it — no Python, no uv, no Docker. Claude Desktop runs the server itself
using its own built-in Python/uv runtime
(manifest.json declares this), the same way it runs any other
extension. For Claude Code or other MCP-capable agents, see MCP client
setup above instead.
Available tools
Accounts
list_accounts— list all accounts with types and IDsget_account_info— balances and buying powerget_positions— holdings with P&Lget_trades— executed trades (0-7 days back)get_ledgers— currency balancesget_orders— active ordersget_daily_transactions— today's transactions
Instruments
get_instrument— instrument details (batch supported)lookup_instrument— find by ISIN or market IDsearch_stocks— free-text stock searchcheck_suitability— check whether an instrument is tradeable
Reference
get_countries— country listget_instrument_types— instrument typesget_search_attributes— search filter attributes
Login
nordnet_auth— start (or restart) QR-code login; renders as an MCP App image on supporting hosts, or ASCII art otherwisenordnet_login_poll— app-only, polls a pending login and finishes it once approved
Development
Publishing the Desktop Extension
CI validates and packs nordnet-mcp.mcpb and publishes it to the latest GitHub
Release on every push to main — the same "always-current" pattern as the :latest
Docker tag, not a versioned per-release artifact. No manual step needed; the
Claude Desktop Extension
download link always points at that release's asset.
To do it locally (e.g. to sanity-check a change before pushing):
.mcpbignore keeps the bundle to just what the uv runtime needs (manifest.json,
pyproject.toml, src/, server/) — it's not the whole repo.
Security notes
- Do not commit
.env. - Do not paste your session token into issues or logs.
- The QR login flow never exposes the session token to the model or the MCP App view —
it's applied straight to the running server's in-memory client and never written to
disk. If you set
NORDNET_SESSION_TOKENmanually instead, treat that.envfile like it holds a password, because it does. - Tokens are short-lived; if you get a 401/session-expired error, call
nordnet_auth(or fetch a fresh token manually) rather than treating it as a hard failure. - This server is read-only by design.
Limitations
- Sessions are short-lived (a couple of hours) if idle, regardless of how they're obtained. The background keep-alive (see Status) only helps while the server process is actually running.
- A QR-obtained session is memory-only and does not survive a server restart, so a restart means logging in again. Use manual token setup instead if this is too disruptive in practice.
- QR login requires the Nordnet mobile app; if you can't use that, provide a manually extracted browser session token instead.
- The QR login and keep-alive mechanism relies on unofficial Nordnet behavior and may change without notice — same caveat as the rest of the API this project wraps.
License
MIT
來源:README.md,提交 0f889dd
工具
0版本歷史
1- v0.1.0最新Oct 23, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Portfolio 整合

PortfolioFit
fit.portfolio官方發布者
PortfolioFit 是遠端 MCP 伺服器,讓助理依投資指令核對標準化投資組合,並計算配置限制與統計指標。

Cameron Rye Portfolio MCP Server
dev.rye官方發布者
遠端 MCP 端點,提供 Cameron Rye 的部落格、作品集專案、簡介、閱讀清單與網站即時統計,以及聯絡與訂閱工具。
Shlok Bam's portfolio
由 GitHub 帳號 shlokbam 發布
瞭解AI工程師Shlok Bam:專案、經驗、技能、專利。即時、唯讀。AI 翻譯

Harshith Nayaka L portfolio docs
由 GitHub 帳號 HarshithNayakaL 發布
唯讀 MCP 伺服器,提供某作品集網站 JSON API、MCP、A2A 與 NLWeb 的開發者文件。

Harshith Nayaka L portfolio
由 GitHub 帳號 HarshithNayakaL 發布
以唯讀方式存取 Harshith Nayaka L 的作品集網站,讓助理查詢其個人簡介、專案、案例研究、常見問題與 agent 技能。