tui-use
Let AI agents drive vim, ssh, REPLs and other interactive terminal programs
tui-use is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 1.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add tui-use -- npx -y @pavanmanishd/tui-useAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"tui-use": {
"command": "npx",
"args": [
"-y",
"@pavanmanishd/tui-use"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"tui-use": {
"command": "npx",
"args": [
"-y",
"@pavanmanishd/tui-use"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"tui-use": {
"command": "npx",
"args": [
"-y",
"@pavanmanishd/tui-use"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"tui-use": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pavanmanishd/tui-use"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add tui-use -- npx -y @pavanmanishd/tui-useOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.tui-use]
command = "npx"
args = ["-y", "@pavanmanishd/tui-use"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"tui-use": {
"command": "npx",
"args": [
"-y",
"@pavanmanishd/tui-use"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Or run: gemini mcp add -s user tui-use npx -- -y @pavanmanishd/tui-use
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "tui-use": { "command": "npx", "args": [ "-y", "@pavanmanishd/tui-use" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About tui-use
tui-use gives an agent a real terminal it can read and type into over many turns. That fixes the usual trouble with one-shot shell calls, where a prompt waits until timeout, a full-screen program prints escape codes and a REPL forgets its state.
Every call that changes something returns the screen as numbered text, with the cursor marked and highlighted text wrapped in guillemets. After the first screen, input returns only the rows that changed. Agents can send text, named keys such as esc, ctrl+c or f5, or an ordered input list, and wait until some text appears, disappears, matches a regex, goes idle or the program exits.
It needs Node.js 22 or newer on macOS or Linux, with WSL on Windows. A CLI offers the same operations to agents that only have a shell, using a background daemon to keep sessions alive.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 6 tools change data; 4 names don't say.
From the server's own tool labels and tool names; not verified by us.
- tui_startName suggests: changes
- Start a program and return its first screen
- tui_sendName suggests: changes
- Send text and keys and return the new screen
- tui_snapshot
- Return the screen without sending input
- tui_wait
- Wait without sending input
- tui_scrollback
- Read output that scrolled off screen
- tui_manage
- List, kill or resize sessions, or get a recording path
What it does
- Persistent terminal sessions
- Start a program once and keep interacting across turns.
- Screen as text
- Numbered rows with a cursor marker and highlight marks.
- Diff updates
- After the first screen, only changed rows are returned.
- Flexible waiting
- Wait for text, a regex, text to vanish, idle time or exit.
- Scrollback search
- Read output that scrolled off by range or search.
- CLI and plugin
- A shell CLI and a Claude Code plugin offer the same operations.
Good for
- Squash commits with git rebase -i from an agent
- Drive an ssh session or database shell
- Walk through an npm init or installer prompt
- Work in a REPL or debugger that keeps state
Pricing
Free
tui-use FAQ
What are the requirements?
Node.js 22 or newer on macOS or Linux; Windows users run it under WSL.
Which clients can use tui-use?
Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Claude Desktop, or any agent with a shell.
Does tui-use need compiling?
No. Prebuilt terminal binaries ship for x64 and arm64.
Is tui-use free?
Yes. tui-use is free to use.
How do I add tui-use to Claude Code?
Run this command in your terminal: claude mcp add tui-use -- npx -y @pavanmanishd/tui-use
What are the best alternatives to tui-use?
The closest alternatives to tui-use are terminal-use, SmartCLI — drive terminal TUIs, shell-use, Smart Terminal and taria.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.