Hermes Agent and spreadsheets: MCP setup, OAuth and skills
Hermes Agent reads files with its built-in file tools and runs Python in its terminal to analyse spreadsheets. To query a CSV or Excel file accurately, add a spreadsheet MCP server under mcp_servers in ~/.hermes/config.yaml with auth: oauth, run hermes mcp login, then /reload-mcp. Hermes then calls tools like aggregate and filter that compute over every row.
How Hermes works with files today
Hermes has four file tools (read_file, write_file, patch and search_files) and a terminal tool that runs commands on one of six backends: local, Docker, SSH, Daytona, Modal or Vercel Sandbox. For a spreadsheet, the usual path is the terminal: Hermes writes a pandas or openpyxl script, runs it, and reasons over what it prints.
That's fine for a tidy CSV. It gets shaky with real exports: a bank statement whose header sits on row 12, amounts like ₹1,23,456.00 or (450.00) stored as text, or dates that switch between DD/MM and MM/DD. Each run, Hermes has to rediscover those details, and a wrong guess still produces a clean-looking number.
Is there a Hermes Agent Excel skill?
Yes, for building workbooks. Hermes's optional skills catalog has a finance category with excel-author ("build auditable financial workbooks headless via openpyxl") and model templates such as 3-statement, DCF and comps. Install them with hermes skills install from the catalog.
Those skills write Excel. They don't clean or query an export you already have. For that job, an MCP server is the better fit.
Add a spreadsheet MCP server to Hermes
Hermes speaks MCP over stdio and HTTP and supports OAuth 2.1 with PKCE, including client registration, so a hosted server can sign you in without you copying keys around. Fileshape Ask AI is a hosted, read-only server for your files: upload a CSV, Excel, ODS, JSON or PDF statement, and Fileshape finds the header row, turns amounts into numbers and dates into YYYY-MM-DD, and exposes describe, get_rows, filter, search, aggregate and distinct, plus list_files across your uploads.
Add this to ~/.hermes/config.yaml: mcp_servers → fileshape → url: "https://mcp.fileshape.app/mcp" and auth: oauth. Then:
- Upload your file at fileshape.app/account/datasets.
- In a new terminal, run hermes mcp login fileshape and sign in to Fileshape. (Hermes's docs warn that the in-session auto-reload times out before an OAuth login can finish.) The token is cached in ~/.hermes/mcp-tokens/.
- Back in your Hermes session, run /reload-mcp, then ask: "Which vendors did I pay more than ₹50,000 last quarter?"
Tool filters and API keys
To keep the agent focused, add a tools block with include: [describe, aggregate, filter]. If both include and exclude are set, include wins.
On a headless server where a browser sign-in is awkward, skip OAuth: create a key under Account → API keys and set headers → Authorization: "Bearer fs_live_…" instead of auth: oauth. Or use a single file's private URL, which needs no authentication at all.
You control exposure from Fileshape too: columns can be masked (XXXX1234) or hidden before upload, and AI access can be switched off per file. The free plan covers 1 file of up to 50 MB for 7 days.
Convert or reshape a file in your browser. Nothing is uploaded.
Open the converterFAQ
Questions
Where is the Hermes Agent MCP config?
In ~/.hermes/config.yaml under mcp_servers. Each server has a url (or command for stdio) plus optional headers, auth, timeout and tools filters.
How do I reload MCP servers in Hermes?
Run /reload-mcp in your session, or start a new session.
Does Hermes Agent support OAuth for MCP?
Yes. Set auth: oauth on the server and run hermes mcp login <name>. Hermes handles discovery, client registration, PKCE and token refresh.
Can Hermes change my spreadsheet through Fileshape?
No. Fileshape's tools only read. Use the excel-author skill or a script when you want Hermes to write a workbook.
More from the blog
Keep reading
- AI for data analysis: which tool to use, and how to trust the answersThe three ways to use AI for data analysis (chat uploads, spreadsheet add-ins, connected agents), which fits which job, and how to check the numbers.
- How to upload files to ChatGPT and Claude, and share them with any AIUpload a file to ChatGPT or Claude, fix uploads that fail, and share the same files with every AI app through one URL instead of re-uploading.
- Is it safe to upload a bank statement to ChatGPT or Claude?What ChatGPT and Claude keep when you upload a bank statement, the settings that stop training on it, and how to share only the columns the AI needs.
- Bank statement analysis with ChatGPT or Claude: prompts that get the numbers rightCopy-paste prompts for analysing a bank or card statement in ChatGPT or Claude, plus how to prepare the file so the totals come out right.
Updated 2026-11-19