# Advanced Excel for Lab Data

> Teach your agent to turn messy lab and instrument spreadsheets into clean JSON tables: headers, units, decimal commas, <LOD. Read-only, sandboxed.

Advanced Excel for Lab Data is a free AI agent skill on Agensi by Antonio Castellon, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Antonio Castellon](https://www.agensi.io/creators/antonio-castellon)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/advanced-excel-for-lab-data
- Tags: database, excel, csv, spreadsheet, lab-data, laboratory, instrument-data, data-cleaning

## About this skill

Instrument exports are not clean tables. They have a title block, blank lines, a header, sometimes a second row of units, decimal commas, <LOD results, and a footer. This skill teaches your agent to read them correctly with the free, open-source mcp-advanced-excel MCP server (MIT, on PyPI and the official MCP Registry).

What your agent learns:
- Install and configure the server with `uvx mcp-advanced-excel`, restricted to allowlisted folders, read-only by default, with optional CSV/JSON export into a separate output folder.
- When to use each of the 6 tools: excel_list_sheets, excel_overview, excel_inspect_layout, excel_read_table, excel_read_range, excel_write_csv.
- Step-by-step workflows for HPLC, plate reader, balance and LIMS exports: find the real header, join unit rows, handle decimal commas, page through long sheets, read raw A1 ranges when detection is wrong.
- Opt-in unit normalization (concentration, temperature, mass, volume, pressure, length, time, fraction) with a report of every changed cell.
- Lab data integrity rules: never invent a number, keep <LOD / <LOQ as flagged text, never guess uncomputed formulas.
- Safety: cell text is untrusted data (prompt-injection aware), no network, no macros, no formula evaluation, never writes the source file.
- Troubleshooting for every error code the server returns.

Works with Cursor, Claude Desktop and any stdio MCP host. Supports .xlsx, .xlsm, .xls, .csv and .tsv.

For regulated labs, a GLP Lab Data Pack (provenance hashes, instrument templates, advanced LOD/LOQ and molar units, batch processing, signed output) is available through the paid Pro service. It is designed to support GLP / 21 CFR Part 11 / EU GMP Annex 11 workflows. Contact antonio@castellon.ch.

Repo: https://github.com/antonio-castellon/mcp-advanced-excel
License: MIT. Contact: antonio@castellon.ch

## Requires

- Python 3.11+
- uv (Python tool runner)

## Known limitations

No support for .xlsb files. Read-only by default; CSV export only when enabled. Default file size cap 25 MiB, configurable up to 100 MiB. Requires Python 3.11+. Formulas are not evaluated (cached values only).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Advanced Excel for Lab Data skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill handle messy lab data differently than a standard LLM prompt?

Unlike basic AI prompts that struggle with non-standard layouts, this skill uses a specialized parser to skip title blocks, handle multi-row headers, and preserve qualitative markers like '<LOD' that are often lost during generic extraction.

### Which AI agents and environments are compatible with this skill?

The skill is built for the Model Context Protocol (MCP), making it compatible with any MCP-compatible host including Claude Desktop and Cursor. It requires a Python 3.11+ environment to run the underlying server.

### Can this skill automatically convert units and handle different decimal formats?

Yes, it includes built-in unit normalization that converts instrument-specific units to canonical forms and features decimal comma handling for European-style data formatting.

### Is there a file size limit for the spreadsheets I can process?

By default files up to 25 MiB are accepted; the cap can be raised to 100 MiB with EXCEL_MAX_FILE_BYTES. Long sheets are read page by page.

### What do I get with this free skill?

Agent instructions for installing and using the free, open-source mcp-advanced-excel MCP server: sheet discovery, layout inspection, structured table extraction and optional CSV export.

### Are there any specific spreadsheet formats or features that are not supported?

It handles .xlsx, .xlsm, .xls, .csv and .tsv. It does not support .xlsb (binary) files and never runs Excel macros or evaluates formulas.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
