tablekit-mcp
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., "@tablekit-mcp Convert this CSV to a Markdown table, right-align the numbers."
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.
tablekit-mcp
A tiny, dependency-free MCP server for tabular data — convert, align, reshape and inspect tables without breaking them.
Tables are where language models quietly fail: they drop rows when converting a big CSV to JSON, they misalign Markdown columns, they transpose a table and shuffle the wrong cell. tablekit does those jobs with plain deterministic code instead of guessing.
Zero network access. Zero file system access. Pure Python standard library. It takes a string and returns a string.
Why this exists
Task | Asking the model to do it | Letting tablekit do it |
CSV → JSON, 200 rows | Rows get silently dropped or truncated | Every row survives |
Fix a ragged Markdown table | Columns drift, especially with CJK text | Re-aligned by real display width |
Transpose / sort / filter | Off-by-one row errors | Deterministic |
"What's wrong with this table?" | Vague guess | Type inference, empty counts, duplicate report |
Chinese / Japanese / Korean tables line up correctly. Most tools measure string length; tablekit measures display width, so 苹果 counts as 4 cells and the pipes actually match.
Related MCP server: tablestakes
Tools
Tool | What it does |
| Convert between |
| Re-align a messy Markdown table so every column lines up |
|
|
| Structure report: row/column counts, per-column type, empty counts, distinct values, dirty-data warnings |
Formats accept the aliases .md, .csv, .htm — paste a filename extension and it just works.
Install
Option 1 — run straight from GitHub (uv)
uvx --from git+https://github.com/Orange123Eleven/tablekit-mcp tablekit-mcpOption 2 — clone and install
git clone https://github.com/Orange123Eleven/tablekit-mcp
cd tablekit-mcp
uv venv && uv pip install -e .Configure your client
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"tablekit": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Orange123Eleven/tablekit-mcp",
"tablekit-mcp"
]
}
}
}Cursor / Cline / Windsurf / VS Code — same shape, e.g. .cursor/mcp.json:
{
"mcpServers": {
"tablekit": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Orange123Eleven/tablekit-mcp",
"tablekit-mcp"
]
}
}
}Restart the client and the four tools appear in the tool list.
What it looks like in use
1. A CSV with Chinese headers, converted to a readable Markdown table
Input:
名称,数量,单价
苹果,3,5.50
进口香蕉,150,2.00Ask: "turn this into a Markdown table, right-align the numbers"
Output:
| 名称 | 数量 | 单价 |
| -------- | ---: | ---: |
| 苹果 | 3 | 5.50 |
| 进口香蕉 | 150 | 2.00 |2. A broken table gets repaired
Input (note the short row):
| name | team | score |
| ------ | --------- | ----- |
| Ana | Red | 91 |
| Ben | Blue |table_inspect reports:
Rows: 2 | Columns: 3
| Column | Type | Empty | Distinct | Most frequent |
| --- | --- | --- | --- | --- |
| name | text | 0 | 2 | Ana (1) |
| team | text | 0 | 2 | Red (1) |
| score | integer | 1 | 1 | 91 (1) |
Issues found:
- 各行列数不一致(少则 2 列,多则 3 列),已按最大列数补空。3. HTML table scraped from a page → CSV
Ask: "here's the HTML, give me a CSV I can paste into Excel" — one call, no row loss.
Safety
This server is deliberately boring, and that is the point:
No network requests. It never phones home.
No file system access. It cannot read or write your files. You paste text in, you get text back.
No third-party dependencies. Only the MCP SDK itself.
Stateless. Nothing is stored between calls.
Deterministic. Same input, same output, every time.
中文说明
给中文用户的一句话:表格数据的小工具,专治中文表格对不齐、大表格转换丢行。
四种工具:格式互转 / 对齐美化 / 转置排序筛选 / 结构体检
支持 Markdown、CSV、TSV、JSON、HTML 五种格式
中文按 2 格宽度对齐,
| 名称 | 数量 |这种表格能真正对齐(大多数工具做不到)纯本地、不联网、不碰你的文件、无第三方依赖
上面「Configure your client」里的配置直接抄就行。
Development
python3 tests/test_core.py -v # 42 tests, standard library onlyThe processing logic lives in src/tablekit_mcp/core.py and has no MCP dependency, so it can be tested and reused on its own. src/tablekit_mcp/server.py is a thin wrapper that exposes it over MCP.
License
MIT
Available Tools
4 toolstable_alignA
Re-align a messy Markdown table so every column lines up.
Use this when a Markdown table is ragged, when pipes are not aligned in the source, when a row has the wrong number of cells, or when Chinese characters make the columns drift. This is a focused shortcut for table_convert(..., to_format="markdown"); it always outputs Markdown.
Args: text: The table as text. Defaults to reading it as Markdown. from_format: How to read the input. markdown, csv, tsv, json or html. aligns: Per-column alignment, e.g. "left,right", or a single value. Empty means no explicit alignment markers.
Inputs: text (required), aligns, from_format. Returns: result
table_convertA
Convert tabular data between formats, without losing or reshuffling rows.
Use this whenever a table needs to change shape: CSV to Markdown, Markdown to JSON, HTML table to CSV, and so on. Rows are never silently dropped, and ragged rows are padded rather than truncated. Markdown output is column-aligned with East-Asian wide characters counted as two cells, so Chinese tables line up correctly.
Args: text: The whole table as text. from_format: Source format. markdown, csv, tsv, json or html (aliases: md, htm). to_format: Target format. markdown, csv, tsv, json or html (aliases: md, htm). aligns: Markdown output only. Per-column alignment as a comma-separated list, e.g. "left,right,center", or one value applied to every column, e.g. "center". Empty means leave the default alignment. indent: JSON output indentation width. Default 2.
Inputs: text (required), to_format (required), from_format (required), aligns, +1 more. Returns: result
table_inspectA
Report the structure and data quality of a table before working on it.
Returns row and column counts, a per-column summary (inferred type, empty count, distinct values, most frequent values) and a list of problems such as duplicate headers, ragged rows, fully duplicated rows and empty rows. Call this first when a table looks suspicious, then fix it with table_transform.
Args: text: The whole table as text. from_format: How to read the input. markdown, csv, tsv, json or html.
Inputs: text (required), from_format. Returns: result
table_transformA
Reshape a table: transpose, pick or rename columns, sort, dedupe, filter.
Prefer this over editing rows by hand when the change is mechanical, because the whole table is processed at once and row order is preserved.
Args: text: The whole table as text. operation: What to do. transpose | select_columns | rename_columns | sort | dedupe | drop_empty_rows | filter. from_format: How to read the input. markdown, csv, tsv, json or html. to_format: How to write the result. markdown, csv, tsv, json or html. columns: For select_columns: the column names to keep, in output order. A 1-based column number is also accepted, e.g. "2". renames: For rename_columns: a mapping of old name to new name. sort_by: For sort: the column to sort on. descending: For sort: set true for descending order. numeric: For sort: set true to sort numerically instead of as text. column: For filter: the column to test. operator: For filter: == | != | > | >= | < | <= | contains | startswith | endswith | empty | not_empty. value: For filter: the value to compare against. aligns: Markdown output only. Per-column alignment or a single value.
Inputs: text (required), operation (required), value, aligns, +9 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools have largely distinct purposes: align for realignment, convert for format changes, transform for reshaping, and inspect for analysis. However, table_align is a subset of table_convert (always outputs markdown) which could cause confusion when deciding which tool to use. This minor overlap prevents a perfect score.
All tool names follow the consistent pattern 'table_<verb>' using snake_case: table_align, table_convert, table_transform, table_inspect. The verbs are clear and predictable, making the API easy to navigate.
With 4 tools, the server covers the core operations (convert, transform, inspect, align) without bloat. While slightly on the lean side, the scope is focused and each tool justifies its existence. A couple more tools (e.g., merge or split) might be expected but the current count is reasonable.
The toolkit provides solid coverage for tabular data manipulation: format conversion, structural transformation, inspection, and alignment. Missing operations like merging tables or creating from scratch are not critical for the stated purpose, but there are minor gaps (e.g., no direct row insertion/deletion) that agents can work around using transform operations.
Maintenance
Related MCP Connectors
Convert CSV data into JSON, Markdown or HTML tables, YAML, XML or TSV, from pasted text or a link.
Convert and clean tables: CSV, JSON, dedupe, stats. Free.
Read, filter, group and write XLSX, CSV, TSV and JSON data, and convert between the formats.
Dedupe, compare, merge, split and profile CSV or TSV files that are too big to paste into a chat.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceBidirectional CSV ↔️ JSON ↔️ Markdown transformer exposed as an HTTP-based MCP server, enabling format conversion through natural language.MIT
- AlicenseAqualityCmaintenanceEnables LLMs to discover, read, and edit tables in HTML/Markdown documents by converting messy collapsed HTML into clean pipe format and writing back with version-checked, surgical cell, row, and column operations.1124 PyPI1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables converting Markdown and HTML tables into structured JSON records with automatic column type inference and format normalization. It also offers supporting web-agent primitives such as DOM semantic pruning, form field auto-mapping, and execution trajectory evaluation, all via a zero-dependency MCP server.7MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables agents to transform tabular Markdown content into structured, type-inferred records with normalized formatting through an MCP-compatible interface.MIT