Tty Table

Developer tools

Cross-platform terminal table (Windows, Linux, macOS). Can also run in the browser console and provide. MCP server gives your coding agent with a quick way to add text-wrapped ASCII tables to your README or other files.

Your AI app calls the Tty Table MCP server, which does the developer tools work and sends the result back to the chat.

About Tty Table

Tty Table is a community MCP server from tecfu, filed in our directory under developer tools. Cross-platform terminal table (Windows, Linux, macOS). Can also run in the browser console and provide. MCP server gives your coding agent with a quick way to add text-wrapped ASCII tables to your README or other files.

At a glance

Publisher
tecfu (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
311

How to set up Tty Table

  1. Follow the install steps in the Tty Table README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Tty Table README for keys or settings; the registry lists none that Tty Table requires.
  3. Add Tty Table to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Tty Table tools to confirm the connection.
  5. Run one read-only task with Tty Table first, and keep your app asking before each tool call until the results look right.

Tty Table compared with similar servers

  • Aider by disler has fewer GitHub stars than Tty Table (309 against 311); both are community servers, and both run locally.
  • Knowledge RAG by lyonzin has fewer GitHub stars than Tty Table (311 against 311); both are community servers, and both run locally.
  • Session Knowledge by nameforjt-afk has fewer GitHub stars than Tty Table (307 against 311); both are community servers, and both run locally.

Before you connect Tty Table

  • Give Tty Table its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Tty Table tool call until you trust what it does with them.
  • Treat text that Tty Table fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Tty Table on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Tty Table

How marketing and sales teams put Tty Table to work, by company size. Pick the size closest to yours and start Tty Table on one use case.

Small business

  • A small business with a developer can use Tty Table to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Tty Table to explain and fix a marketing site issue without context switching between tools.
  • Tty Table runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Tty Table to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Tty Table to keep scripts and automations documented and versioned as they change.
  • Start Tty Table on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Tty Table with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Tty Table so web and marketing engineering share one reviewed way of working with AI.
  • Tty Table is a community server, so have security review the code and pin a version before Tty Table touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Tty Table README

From tecfu/tty-table on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

tty-table

A TypeScript-first terminal table renderer with a compatibility-oriented factory API.

Examples

See here for complete example list

To view all example output:

$ git clone https://github.com/tecfu/tty-table && cd tty-table && npm i
$ npm run view-examples
Terminal (Static)

examples/styles-and-formatting.js

Terminal (Streaming)
$ node examples/data/fake-stream.js | tty-table --format json --header examples/config/header.js
  • See the built-in help for the terminal version of tty-table with:
$ tty-table -h
MCP server

Expose tty-table to MCP clients (Claude, IDE agents, Cursor, etc.) over stdio.

Client configuration
{
  "mcpServers": {
    "tty-table": {
      "command": "npx",
      "args": ["-y", "--package=tty-table", "tty-table-mcp"]
    }
  }
}
Tools
Tool Description
render_table Render data as an ASCII/Unicode terminal table. Accepts header, rows, and any tty-table options; returns the rendered table as text.

Arguments for render_table:

Name Type Required Description
header (string | {value, align?, width?})[] no Column definitions
rows (unknown[] | Record<string, unknown>)[] yes Row data (arrays of cells, or objects keyed by column name)
options object no Any tty-table option (e.g. width, borderStyle, align, compact)

Example tool call:

{
  "header": [{ "value": "name" }, { "value": "score", "align": "right" }],
  "rows": [["Ada", 100], ["Grace", 98]],
  "options": { "width": 40 }
}

Rendered result:

  ┌───────┬───────┐
  │ name  │ score │
  ├───────┼───────┤
  │  Ada  │   100 │
  ├───────┼───────┤
  │ Grace │    98 │
  └───────┴───────┘

Additional tools may be added in future releases under the same MCP server.

Browser & Browser Console

The published package ships a standalone IIFE bundle that exposes a TtyTable global. Load it directly from a CDN, no install or build step required:

<script src="https://cdn.jsdelivr.net/npm/tty-table@7/dist/browser/tty-table.global.js"></script>
<script>
  const Table = TtyTable.default
  console.log(Table([{ value: "name" }, { value: "score" }], [["Ada", 100]], null).render())
</script>


Compatibility

Node.js

Current releases require Node.js 22 or newer. This is a breaking change from the Node 20 baseline used by early v6 releases (and from the v5 line, which supported older Node.js releases). The floor was raised to match smartwrap@4 / breakword@2.1.0. If your application must remain on Node 20, stay on a prior tty-table release until you can upgrade.

The published package provides both ESM and CommonJS entry points for Node.js. The CLI requires Node.js 22+ as well.

API

import Table from "tty-table"

const table = Table(
  [{ value: "name" }, { value: "score", align: "right" }],
  [
    { name: "Ada", score: 100 },
    { name: "Grace", score: 98 }
  ],
  { borderStyle: "solid" }
)

console.log(table.render())

Legacy Table(header, rows, footer, options) and Table(rows, options) construction remains supported.

Formatter context

New code can use the explicit context form:

const formatter = (value: unknown) => String(value).toUpperCase()

The compatibility callback signature is still accepted. New integrations should prefer a formatter that accepts the documented context object and avoid relying on dynamic this mutation.

Width semantics

Widths are measured in terminal display columns, not JavaScript string length. ANSI escape sequences are ignored for measurement; Unicode code points are counted using breakword.width() (Unicode 18.0.0 East Asian Width + UAX #51 Emoji_Presentation). Wrapping and truncation operate on the same display-width semantics.

Compared with older releases that used wcwidth, some symbols that were previously treated as 1 cell are now 2 cells (for example ⚡ U+26A1). Tables containing those characters may reflow slightly; measurement is now aligned with the same library used for wrapping.

Development

npm install
npm run typecheck
npm run build
npm test
npm run test:unit
npm run lint

Questions about Tty Table

What is the Tty Table MCP server?

Cross-platform terminal table (Windows, Linux, macOS). Can also run in the browser console and provide. MCP server gives your coding agent with a quick way to add text-wrapped ASCII tables to your README or other files. Tty Table is maintained by tecfu on GitHub at tecfu/tty-table, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Tty Table MCP server?

Tty Table doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (tecfu/tty-table). Like most servers, Tty Table ends with a command or URL you paste into your AI app's MCP config.

Does Tty Table need an API key?

The registry lists no required keys for Tty Table. Check the Tty Table README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Tty Table an official MCP server?

No. Tty Table is a community server maintained by tecfu. Community servers can be excellent; read the code and the open issues before you give Tty Table access to company data.

What license is Tty Table under?

Tty Table is released under the MIT license, according to its GitHub repository. The license covers the code of Tty Table; the service it connects to has its own terms.