mcp-spreadsheet
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-spreadsheet Summarize the Quantity column in Vendas sheet"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Spreadsheet PoC
PoC em Python de um servidor MCP que expoe resources, tools e prompts para trabalhar com arquivos .xlsx em um diretorio isolado.
Arquitetura
Host: Claude Desktop, VS Code/Copilot ou MCP Inspector.
Client: cliente MCP embutido no host.
Server: este projeto, executado via
stdio.Resources: catalogo, metadados e aba em JSON, todos somente leitura.
Tools: leitura de intervalo, criacao, inclusao de linhas, atualizacao de celula e resumo numerico.
Prompt: roteiro reutilizavel para analise de vendas.
Related MCP server: excel-mcp
Seguranca da PoC
acesso restrito a
MCP_SPREADSHEET_DATA_DIR;somente
.xlsx;bloqueio de path traversal;
escrita desligavel por variavel de ambiente;
sem sobrescrita na criacao;
backup automatico antes de alteracoes;
limite de linhas por operacao;
nenhuma formula, macro ou comando e executado pelo servidor.
Inicio rapido no PowerShell
cd .\mcp_spreadsheet_poc
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -e ".[dev]"
python .\scripts\create_demo.py
mcp dev .\src\mcp_spreadsheet\server.pyO comando mcp dev abre o MCP Inspector e requer Node.js/npx no PATH. No Inspector, experimente:
Resource
spreadsheet://catalog.Tool
read_rangecomvendas_demo.xlsx,Vendas,A1:F5.Tool
summarize_columncom colunaD.Prompt
analyze_sales.
Execucao direta por stdio
$env:MCP_SPREADSHEET_DATA_DIR = (Resolve-Path .\data)
$env:MCP_SPREADSHEET_ALLOW_WRITE = "true"
mcp-spreadsheetCopie e adapte mcp.json para o formato de configuracao aceito pelo host escolhido. Prefira caminho absoluto no campo MCP_SPREADSHEET_DATA_DIR.
Testes e qualidade
pytest
ruff check .
mypy srcCenarios de demonstracao
Pergunta: "Quais planilhas estao disponiveis?" O host consulta o resource de catalogo.
Leitura: "Mostre as vendas A1:F5." O modelo chama
read_range.Analise: "Qual a media de quantidade?" O modelo chama
summarize_column.Escrita: "Adicione uma venda." O host deve solicitar aprovacao humana e entao chamar
append_rows.
Limites intencionais
Esta PoC nao processa .xlsm, nao preserva macros, nao recalcula formulas como o Excel, nao implementa autenticacao para transporte remoto e nao oferece transacoes concorrentes. Para producao, use Streamable HTTP com autenticacao/autorizacao, trilha de auditoria, controle de concorrencia, allowlist de operacoes e aprovacao humana para escrita.
Available Tools
5 toolsspreadsheet_append_rowsC
Adiciona linhas ao final de uma aba.
Inputs: rows (required), sheet (required), filename (required). Returns: object
spreadsheet_create_workbookA
Cria uma planilha XLSX sem sobrescrever arquivos existentes.
Inputs: sheet (required), headers (required), filename (required). Returns: object
spreadsheet_read_rangeA
Lê um intervalo da planilha sem modificar o arquivo.
Inputs: sheet (required), filename (required), cell_range (required). Returns: object
spreadsheet_summarize_columnB
Calcula estatísticas básicas de uma coluna numérica.
Inputs: sheet (required), column (required), filename (required). Returns: object
spreadsheet_update_cellB
Atualiza uma célula e cria backup antes da alteração.
Inputs: cell (required), sheet (required), value (required), filename (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct spreadsheet operation: reading, creating, appending, updating, and summarizing. There is no meaningful overlap or ambiguity between them.
All tools consistently follow the spreadsheet_verb_noun pattern using snake_case. The verbs are uniform and clearly indicate the action.
Five tools is a well-scoped size for a focused spreadsheet server. Each tool provides a distinct, useful capability without bloat or redundancy.
Core workflows like create, read, append, update, and summarize are covered. However, there are no delete/clear operations or sheet-level management tools, which creates a notable gap in the expected spreadsheet lifecycle.
Maintenance
Related MCP Connectors
The Excel engine for AI agents: read, check and edit Excel models over MCP.
Read-only MCP over your Excel or Airtable plus the PDFs beside it, joined as one relational dataset.
Excel analytics: inspect, query (JSON rows), charts, and JSON-to-xlsx workbook writing.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables reading and searching Excel files through MCP-compatible clients. Provides tools to retrieve workbook metadata, read sheet contents, and search across all sheets using absolute file paths.1MIT
- AlicenseAqualityDmaintenanceEnables reading and writing Excel workbooks (.xlsx) through MCP. Supports listing sheets, tables, pivot tables, reading cell data, exporting to CSV/text/Markdown, and creating/modifying Excel files.14GPL 3.0
- FlicenseNot gradedqualityDmaintenanceProvides full read and write access to Excel workbooks (sheets, cell ranges, tables, formulas, formatting, and cross-workbook references) via MCP, running locally or as an HTTP/SSE service.-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to create and manipulate Excel workbooks programmatically, including sheets, cell data, formatting, formulas, charts, and pivot tables.ISC