ask-your-spreadsheet
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Ask your spreadsheet
A small MCP server that lets an AI assistant answer questions about a sales spreadsheet in plain English.
Ask "Which channel made the most money in August?" and the assistant looks the numbers up itself, while the code works out every figure exactly. It's the working example behind my post Want to build something with AI? Build your own MCP server, for free.
What it can do
Three abilities, all read-only:
Ability | What it does |
| Shows the columns, which ones hold numbers, and the values in each text column |
| Adds up a number column exactly, optionally split by a text column and filtered (e.g. one month or one region) |
| Ranks the values of a text column by a number column, highest first |
It ships with sample_sales.csv, a made-up quarter of sales for a small homeware shop, so you can try it straight away.
Related MCP server: mcp-excel
Run it
Needs Python 3.10+.
pip install "mcp[cli]>=2"
python server.pyThen add it to an AI assistant that supports MCP. For Claude Desktop, add this to its config file and restart it:
{
"mcpServers": {
"ask-your-spreadsheet": {
"command": "python",
"args": ["/full/path/to/server.py"]
}
}
}To use your own data, export a sheet as CSV and point the server at it:
"env": { "SHEET_PATH": "/full/path/to/your-sales.csv" }Questions to try
What's in this spreadsheet?
What was total revenue last quarter, by channel?
Which three products sold the most in London?
How did orders in August compare with September?
Why it's built this way
The assistant never adds numbers up itself. Every figure comes from
totalortop, which do the sums exactly, so a wrong total can't slip into an answer.Read-only. It opens the file to read and nothing else. It can't change or delete anything.
One file, one job. It only reaches the spreadsheet you point it at.
Clear descriptions. Most of the work in an MCP server is describing each ability well enough that the assistant knows when to use it.
Tests
pip install pytest anyio
python -m pytest -qLicence
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Ask questions about a CSV in plain English and get answers, charts and cleaned data back.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
AI data analyst: ask about your Excel, CSV, GA4 or database data and get charts and dashboards back
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAnalyzes sales CSV data to filter records, compute KPIs, and generate AI-powered insights and recommendations using OpenAI.-
- AlicenseNot gradedqualityDmaintenanceEnables querying Excel and CSV files using SQL via natural language, allowing AI assistants to analyze data without manual SQL writing.23 PyPI1MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language sales analysis by connecting to a SQLite database, generating charts, and exporting results to CSV/Excel.-
- FlicenseNot gradedqualityDmaintenanceEnables sales data analysis from CSV files using MCP tools, resources, and prompts, including metrics like revenue, profit, top products, and monthly trends.-