/

/

Cost context in your terminal with Claude Code

Cost context in your terminal with Claude Code

Cost context in your terminal with Claude Code

Connect the Costory MCP to Claude Code so the agent checks what a service costs, how it changed and who owns it before you ship a change.

Runs in

Claude Code · Cursor · VS Code

First optimization recommendation

The next day

ROI

Pays for itself with the first recommendation you act on

Claude Code

>

What does the service in this repository cost per month by environment, and how did that change over the last 90 days?

● costory - get_context (MCP)()

● costory - get_context (MCP)()

⎿

… +24 lines (ctrl+o to expand)

● costory - query (MCP)(queries: [{type: "cost"}])

● costory - query (MCP)(queries: [{type: "cost"}])

⎿

… +16 lines (ctrl+o to expand)

●

search-indexer costs €6,400/month: prod €5,100, staging €900, dev €400. Up 21% in 90 days, mostly in prod since replicas went from 6 to 9 on Aug 20.

●

I can save this query as a view, so the team can follow search-indexer cost by environment. Should I save it?

>

Yes, save it as a view.

●

View saved. You can open it in Costory.

>

Try "write a test for main.py"

? for shortcuts

You decide

The developer weighs cost before merging.

Playbook

What the agent does

From what Costory notices to what you decide. Costory suggests the next step in conversation, and you decide whether to go ahead.

Costory notices

A developer is about to change a service.

Costory investigates

01

Add the server

claude mcp add --transport http costory https://app-api.costory.io/mcp

02

Authenticate

OAuth with your Costory account.

03

Ask while you work

The cost of the service you're changing, by environment.

04

Use skills

FinOps skills add guided workflows.

Costory suggests

I can save this query as a view, so the team can follow search-indexer cost by environment. Should I save it?

Where you see it

Claude Code

You decide

The developer weighs cost before merging.

Why it matters

Developers rarely open the FinOps dashboard. If cost is one question away in the tool they already use, they check it.

Who it’s for

Developers, platform engineers

Where it runs

Claude Code · Cursor · VS Code

What you get

What lands in front of your team

Cost in the terminal

No context switch.

Owner-aware

Answers come with team and environment.

Guided skills

Ready-made workflows for common tasks.

Sources and assistants

What it connects

The billing data, context and assistants this playbook uses. Each links to its setup page.

The billing data, context and assistants this playbook uses. Each links to its setup page.

Example prompts

Or drive it yourself

The agent runs this on its own once set up. These prompts open in Claude, pre-filled, to set it up, review it or dig into a result.

The agent runs this on its own once set up. These prompts open in Claude, pre-filled, to set it up, review it or dig into a result.

Check

What does the service in this repository cost per month by environment, and how did that change over the last 90 days?

Before a change

This change doubles the worker replicas. What does the worker deployment cost today?

FAQ

Questions about this playbook

Which agents and assistants work with Costory?

Claude, Claude Code, Cursor, VS Code with GitHub Copilot and Dust connect to the hosted Costory MCP server with OAuth.

How long does this playbook take to set up?

Connecting your billing data and the Costory MCP takes under 30 minutes with Terraform or CloudFormation. The playbook itself takes minutes: pick the scope, the trigger and the Slack channel. The first billing data lands the next day, and the agent starts from there.

Can we adjust what the agent does?

Yes. You choose the trigger, the scope (team, service, environment), the channel and the format, and you can pause or change it at any time.

Does Costory change anything in our cloud accounts?

No. Costory reads billing exports and the metrics you connect, and has no write access to your cloud. Actions it takes create Costory objects only: alerts, reports, dashboards and events. Your team stays in control of every change.

Step-by-step guide in the Costory docs

Put this playbook on call

Included in every plan, from €250/month. 30-day free trial: connect in under 30 minutes, get your first optimization recommendation the next day.

First optimization recommendation

The next day

ROI

Pays for itself with the first recommendation you act on

Setup

About 30 minutes

Data residency

EU

Access

Read-only on your cloud