Skip to main content
Glama
Advance-xd

Avanza MCP

by Advance-xd

Avanza MCP

Independent local Streamable HTTP MCP server for Avanza authentication, account data, instruments, market data, and orders. It uses the unofficial avanza-api package. Order tools can affect real money, so keep MCP approval enabled and use AVANZA_MCP_ALLOWED_ACCOUNT_ID when authenticated.

WARNING

This is an unofficial community project. It is not affiliated with, endorsed by, or supported by Avanza Bank AB. Avanza does not provide an official public API for this integration, so endpoints may change without notice. You are responsible for complying with Avanza's terms and for every action performed through your account.

Setup and run

uv sync --extra test
Copy-Item .env.example .env
uv run python -c "import secrets; print(secrets.token_urlsafe(32))"
uv run avanza-mcp-http

Paste the generated random value into AVANZA_MCP_BEARER_TOKEN in .env before starting the server. Tokens shorter than 32 characters and the published example placeholder are rejected.

The endpoint is http://127.0.0.1:8765/mcp by default. Public market-data tools work without Avanza login credentials; the local MCP bearer token is always required. See docs/tool-matrix.md for risk classifications.

Keep the server bound to localhost. Do not expose it directly to the public internet, reuse the bearer token elsewhere, or commit credentials. Tools that place, edit, or cancel orders can affect real money and should always require interactive MCP approval.

Money-affecting tools are blocked even after login unless both AVANZA_MCP_ENABLE_LIVE_TRADING=true and AVANZA_MCP_ALLOWED_ACCOUNT_ID=<account-id> are configured. Keep live trading disabled for read-only account access. The tools also publish standard MCP read-only and destructive annotations so compatible clients can apply their normal approval policies.

Related MCP server: sc-mcp

Environment ownership

This project exclusively owns all AVANZA_* variables shown in .env.example. Never commit .env.

Tests

uv run pytest

Tests use mocked clients and do not place orders.

Contributing and security

See CONTRIBUTING.md before submitting changes. Report security issues according to SECURITY.md, never in an issue that contains credentials, account data, or bearer tokens.

License

MIT. See LICENSE.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    B
    maintenance
    MCP server for Avanza portfolio monitoring and trading, supporting regular and stop-loss orders, paper trading, and live order placement through an authenticated TUI session.
    Last updated
  • A
    license
    -
    quality
    A
    maintenance
    A read-only MCP server that wraps the Scalable Capital CLI to expose broker data (portfolio, holdings, transactions, analytics, quotes, news) to any MCP-capable client.
    Last updated
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for the Trading 212 public API, enabling account, portfolio, order, pie, and history access with read tools always available and trading tools opt-in.
    Last updated
    13
    1
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    A local MCP server for IG's REST Trading API, providing account/history, market data, position, working-order, and trade-confirmation tools with guarded OTC trade actions.
    Last updated
    19
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Advance-xd/avanza-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server