Sure includes an MCP server that lets compatible AI assistants use the financial data and tools available to your Sure account.
An authorized client can read the user and family financial data exposed by Sure’s MCP tools. Depending on the tools available in your Sure version, it may also be able to make changes. For example, import_bank_statement can create a transaction import from an uploaded bank-statement PDF. Only connect clients and AI providers you trust, and review tool requests before approving them.
Connect an AI assistant
- Sign in to Sure and open Settings > MCP Server.
- Copy the MCP server URL shown on the page. Sure builds this URL from your configured base URL and appends
/mcp.
- Open Claude.ai and go to Settings > Connectors.
- Select Add a connector.
- Enter the connector name and paste the MCP server URL from Sure Settings > MCP Server, then select Add.
- Select the connector’s Connect button to complete authorization. Your browser redirects to Sure. Sign in if needed, then authorize access.
After authorization, the client can use the Sure tools exposed to it. Other MCP-compatible clients follow the same general process: give the client the URL from Settings > MCP Server, then complete Sure’s sign-in and authorization flow in your browser. The client handles the MCP and OAuth protocol details; you do not need to register it or create an access token manually.
Manage connected clients
The Connected clients section under Settings > MCP Server lists clients with active access to your account. Select Revoke beside a client to invalidate its token. Revoke clients you no longer use or recognize.
The current Assistant.function_classes registry exposes the following tools. Tool availability and schemas can vary by Sure version, so clients should use tools/list as the source of truth for their installation.
Read
Create, update, and import
import_bank_statement is not read-only. It requires a bank-statement PDF already uploaded to Sure and creates an import for review; it does not publish the import automatically. Because MCP access is scoped to the Sure user who authorizes the client, tools can access that user’s family data. Review tool calls whenever your client offers that option.
get_insights is gated behind the preview feature flag and only appears when that feature is enabled. It reads the same family-wide insights feed visible on the /insights page and does not mark any insight as read.
Technical details
Sure serves MCP over JSON-RPC 2.0 at the URL displayed in Settings > MCP Server. The endpoint supports initialize, tools/list, and tools/call over HTTP POST requests. MCP-compatible clients use this URL and handle browser-based sign-in and authorization with Sure.
Sure authenticates each MCP request with an active OAuth access token that has the read_write scope. The token’s resource owner determines the Sure user and family available to the tools. Sure creates a fresh transient session for that user for the request so an existing browser or impersonation session is not reused.
Legacy environment-token fallback
Self-hosted deployments can optionally support older clients that cannot complete the browser authorization flow. Set both MCP_API_TOKEN to a high-entropy secret and MCP_USER_EMAIL to an existing Sure user’s email. The client sends the configured token as a bearer token, and the selected user’s family data is exposed to the available MCP tools.
This is a compatibility fallback: Sure tries OAuth access-token authentication first. Prefer the connection flow in Settings > MCP Server, and protect, rotate, and avoid logging any fallback token.
Optional Pipelock proxy
Pipelock is an optional security proxy that can scan MCP tool calls and responses for secret exfiltration, prompt injection, and tool poisoning before forwarding traffic to Sure.
Sure’s AI Docker Compose example exposes Pipelock’s MCP listener on port 8889 and forwards it to Sure’s internal /mcp endpoint. The Helm chart can similarly expose a Pipelock MCP ingress. Operators who deploy it should provide users with the proxied MCP address. Pipelock adds scanning; it does not replace Sure’s browser sign-in and authorization or require users to configure OAuth manually.
Operators can see Sure’s Pipelock configuration for deployment and policy options. Use TLS, restrict direct access to /mcp when practical, and ensure clients use the proxied URL so they cannot bypass scanning.