Skip to main content

polefinance-mcp

MCP server for the Pôle Finance public API — exchanges, instruments, delayed quotes (once enabled), technical indicators, risk metrics, portfolio optimization and backtests. A thin wrapper over the official polefinance Python SDK: every tool call hits the real API with your own key; nothing is computed or fabricated here.

Install

From PyPI (recommended — no repo access needed):

uv pip install polefinance-mcp

From source (for contributors working on this repo):

cd mcp-server
uv venv
source .venv/bin/activate
uv pip install -e ../python-sdk -e .

Get an API key

Create a project and key at https://polefinance-invest.com/developers/dashboard (scopes instruments:read and analytics:compute cover every tool below except quotes, which also needs market_data:read and is not yet enabled in production).

Run it

POLEFINANCE_API_KEY=pf_live_... polefinance-mcp

This starts a stdio MCP server — it's meant to be launched by an MCP client, not run standalone in a terminal for long.

Configure a client

Claude Desktop / Claude Code — add to the client's MCP config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "polefinance": {
      "command": "polefinance-mcp",
      "env": { "POLEFINANCE_API_KEY": "pf_live_..." }
    }
  }
}

If polefinance-mcp isn't on the client's PATH, point command at the venv's copy instead, e.g. "/absolute/path/to/mcp-server/.venv/bin/polefinance-mcp".

Tools

Tool Scope needed Maps to
list_exchanges instruments:read GET /exchanges
search_instruments instruments:read GET /instruments
get_instrument instruments:read GET /instruments/{id}
get_quotes market_data:read (disabled in prod) GET /market-data/quotes
compute_technical_indicators analytics:compute POST /technical/indicators
compute_risk_metrics analytics:compute POST /risk/metrics
optimize_portfolio analytics:compute POST /optimization/portfolio
run_backtest analytics:compute POST /backtests/run

The four analytics:compute tools are rate-limited to 10 calls/minute per key and accept at most 10 assets × 2,520 bars (same limits as the API itself — see ../docs/DEVELOPER_PLATFORM.md).

Tests

cd mcp-server && source .venv/bin/activate && pytest

The tests only check that the server starts and the tool list/schemas are well-formed — they do not call the live API (no key is required to run them).

Metadata

Release files for polefinance-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polefinance-mcp 0.1.0
File Size Uploaded Provenance Actions
polefinance_mcp-0.1.0.tar.gz 5.2 kB With provenance Details for polefinance_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polefinance-mcp 0.1.0
File Interpreter ABI Platform Actions
polefinance_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for polefinance_mcp-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / polefinance_mcp-0.1.0.tar.gz

Download URL polefinance_mcp-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e93d074b6a57178dc7c04005c4c10b996ba7f23df0acec3e3f505be7cf15e68b
BLAKE2b-256 checksum
How to use checksums
6b1cf09ecc52b97d13486d986119bedd4f3a4fe555ea400e84fca2eb75c0c949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / polefinance_mcp-0.1.0-py3-none-any.whl

Download URL polefinance_mcp-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36459d9c24236fc25bd2e9bd93899b72ae561a0fbee1eecad391c7f727200205
BLAKE2b-256 checksum
How to use checksums
d8290d9b611cd9657ff90895068bb3eb8cc3ae5ad86a8c04555372b5ec32368e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for polefinance-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polefinance_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page