AI Agents for finance teams require self-hosted infrastructure
Finance wants an agent that reconciles vendor invoices against the ERP. It needs another agent to pull numbers out of the reporting tools, and help with close, payables and the monthly reporting pack. Whether an agent can do the work is the easy question. The harder one is whether you can show who did what, under which policy, and what it cost. Every agent will need access to ledgers and vendor data, and that puts it inside your control environment.
Stacklok is a Kubernetes-native AI agent platform that you host yourself. An MCP gateway governs every agent-to-tool call. An AI gateway governs model calls and spend. A cloud-native agent harness runs the agents, and one control plane ties all of it to your identity provider. Our design ensures your data stays behind your firewall.
This page is for finance leaders, and for the platform engineering and AI enablement teams who will run agents on finance’s behalf.
Why a finance agent carries more risk than a coding agent
A coding agent’s output goes through a pull request, a test suite and a reviewer before it touches anything real, so most of the safety lives in the surrounding process. Finance has no equivalent. A finance agent touches ledgers. An agent that reads untrusted content, and a vendor’s invoice PDF is untrusted content, is usually one prompt injection away from calling a sensitive tool with the wrong arguments.
We use three questions to decide when security becomes the lead concern for an agent:
- Can the agent call a tool that changes state in a system of record, such as the ERP or a payments system?
- Does it handle data that would be a breach if it left the building?
- Could an attacker influence its inputs through a document, a web page, a ticket or an email it reads?
If any answer is yes, security leads, however good the evals look. In practice the lead concern shifts as a finance agent matures:
- Prototype, output reviewed by a human: accuracy leads. Nothing else matters until it works.
- Working read-only reporting agent at high volume: cost leads. A bill is the worst outcome, though it can be a large one.
- Any agent with write access to the ERP or payments: security leads.
We go deeper on this in accuracy, cost, security: what to prioritize in your agent stack and why giving every employee an AI agent is an infrastructure decision.
Start read-only, then earn write access
The rollout we recommend for finance runs in two stages. First come read-only agents that summarize, reconcile and flag exceptions for a person to review. Write actions, such as posting entries or updating vendor records, come later and only behind explicit approval.
The controls for that second stage should exist from day one. If every tool an agent calls goes through one shared runtime from the start, adding a budget, a permission rule or an audit log later is a configuration change rather than a refactor. The alternative is a common failure: teams bolt security on at the end, after the agent has write access and a dozen integrations with keys in config files, and then find that retrofitting policy means touching every one of them.
Our open source harness, Mecatl, builds approval into the loop rather than leaving it to wherever a developer remembered to add a pause. It has a built-in floor: read-only tools are allowed, while shell, edit and write actions ask first. A deny always wins, and a configured ask cannot be loosened by an allow. Mecatl is new, so check the current documentation for what has shipped in the version you run. The framework vs harness comparison explains the permission model in detail.
Every tool call tied to a named person
Most MCP gateways authenticate the user at the front door and then call every backend with a single credential. The gateway’s log knows who asked, but the ERP’s log records a service account. When internal audit asks which analyst triggered a change, that log names nobody.
Our model works per request. Every MCP tool call carries an identity token, and we validate that token against your configured identity provider on every request. There is no session-level authority that an agent can carry from one task into the next. Credentials are not stored on developer machines, and no authorization request routes through a vendor endpoint.
Finance also gets its own slice of the tool catalog. With our virtual MCP server (vMCP), each endpoint aggregates a specific set of MCP servers, and access is gated by Okta, Microsoft Entra ID or Google Workspace group membership. Finance’s endpoint holds the ERP and BI connectors. Engineering’s holds engineering tools. A shared endpoint covers tools everyone needs, like Slack or Google Drive.
Every tool call produces an OpenTelemetry trace that contains:
- the resolved identity
- the MCP server invoked
- the tool called
- the parameters passed
- the authorization result
Those traces integrate with Grafana, Datadog, Splunk, New Relic and Honeycomb. Structured JSON audit logs work with Splunk, Datadog, New Relic and Elastic. So when an auditor asks which person, through which agent, took which action on which system under which policy, the evidence is already in the systems your controls team uses. More on the identity model in what is agent identity and MCP authentication and authorization: a practical guide.
Ledger and vendor data stay behind your firewall
Stacklok runs the harness, the MCP gateway, the AI gateway and policy management in your cluster. Because it runs in your environment, it operates under your compliance regime, supports air-gapped deployment and adds no third-party processor to your audit scope.
Every MCP server runs in its own isolated container with minimal permissions, and its network and filesystem access are set through profiles. For an ERP connector, that means egress limited to the ERP API’s hosts and ports, and read-only filesystem access unless a write is genuinely required. This matters because connectors are software dependencies. An attacker who compromises an upstream MCP server package gets exactly the permissions you granted it, and no more.
The supply chain gets the same treatment. Our registry carries provenance attestation and server signing for every MCP server in it, so finance connects only to approved tools, which run on the MCP runtime. Plan for the bad day as well. An MCP server your team approved weeks ago can start making calls nobody recognizes, which is why we argue for a kill switch for your MCP and AI gateways.
If finance uses Claude, Anthropic MCP Tunnels connect outward from your infrastructure, so no inbound ports open. The tunnel connects Stacklok to Anthropic, and Stacklok governs identity, policy and audit behind it. See our tips for deploying MCP Tunnels in a regulated environment.
AI spend finance can attribute, not just see
Finance governs the agents, and it also receives their bill. Per-token prices have been falling, but agents burn far more tokens than chat does, and agents that call other agents burn more still. Spikes rarely come from heavy legitimate use. They come from a misconfigured plugin, an agent stuck in a loop, or a tool that sends a screenshot back on every turn.
We recommend tackling spend in this order:
- Visibility. See who is spending what, and on which tasks.
- Budgets. A runaway agent should hit a ceiling before it hits the finance team.
- Loop engineering. Prompt caching and cheaper models for simple subtasks.
The AI gateway covers the first two steps. It defines budgets and monitors AI spend by team, individual, project and more. The harness adds budgets inside the engine itself. Because the gateway routes inference to the providers you choose, you own the harness, tools, policies and memory and rent the model, so changing providers does not reset your governance. We explain how the two gateways divide the work in MCP gateway vs LLM gateway.
We run our own agents this way, and wrote it up as our AI bill is on track to shrink 42% in one month. For the policy side, read what good AI spend governance looks like and our guide Contain your AI costs.
Agents that run during close, not only when someone is at the keyboard
Recurring reconciliation and close work suits scheduled, unattended runs. Mecatl’s server deployments run headless, with scheduled tasks for recurring and one-shot runs under the same permission rules and event history as interactive sessions.
The default is cautious for a reason. On Kubernetes, Mecatl runs headless by default, and an unresolved permission ask is denied unless you have configured a headless-reviewer strategy. An unattended agent therefore cannot quietly approve its own write to the ledger at 2 a.m. on day three of close. This describes the capability, not a customer deployment, and as with the rest of Mecatl, check the current docs for what your version supports.
Built for analysts, not just developers
Picture a finance analyst who opens the AI assistant she uses every morning to pull numbers out of a connected reporting tool. Instead of data, she gets an error she has no way to debug. Governance designed for developers tends to break down for everyone else, so a finance rollout needs clear access groups and approved tools that simply work.
The same goes for the skills analysts pass around. A helpful formatting skill shared in a team chat reaches your data just as a connector does, which is why we argue skills need the same governance as MCP servers.
Who this fits, and who it doesn’t
Stacklok fits enterprises that:
- already run Kubernetes and have a platform team to operate it
- must keep ledger, vendor and customer financial data in their own environment
- want to use more than one model provider
- need audit evidence tied to individual people, not service accounts
It is not the right fit in three cases:
- Teams that cannot operate container infrastructure should evaluate Stacklok carefully, because it runs on your clusters.
- A finance team looking for a ready-made reconciliation or forecasting app should look elsewhere. Stacklok is the governed infrastructure those agents run on, not the agent logic itself.
- Small teams for whom a SaaS tool’s data handling is acceptable may not need self-hosting at all.
If you are a bank, insurer or other regulated financial institution, start with our financial services page and the AI control plane buyer’s guide for FSI.
What a first finance rollout looks like
- Connect your identity provider and map finance groups.
- Pick one read-only use case, such as flagging invoice-to-ERP exceptions or pulling report figures.
- Register approved MCP servers for your ERP and BI tools. Check the registry first. If no server exists for your system, you build or bring one, and it runs in its own container like every other server.
- Set team budgets and per-agent limits.
- Send audit logs to your SIEM, and agree with internal audit on what the evidence should look like.
- Add write actions behind ask-before-acting approval.
The order matters. Identity provider integration, tool segmentation, container isolation profiles and observability are all significantly harder to retrofit once a deployment is live and teams depend on it.
Who’s building this
Stacklok’s CEO Craig McLuckie and CTO Joe Beda co-created Kubernetes. Our platform secures 20M+ tool calls every month. We maintain the open source MCP platform ToolHive and the cloud-native harness Mecatl, we are charter members of the Agentic AI Foundation, and we maintain the official MCP registry.
“Our goal is to make everyone at TRM a builder. Stacklok’s agent runtime ensures the underlying infrastructure is secure and reliable at scale.” (TRM)
“Everything we do at project44 is Kubernetes-native. If all of our services run on Kubernetes, it would not make sense for our MCP servers to operate differently.” (project44)
Read the TRM Labs and project44 case studies, or browse all of our case studies.
When you’re ready, book a demo and we’ll walk through a finance use case on your own cluster. If you’d rather start hands-on, explore our open source projects.
November 23, 2026