kitty-mcp-server
Click on "Install 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., "@kitty-mcp-serveropen a new tab and run htop"
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.
kitty-mcp-server
MCP server for controlling the kitty terminal emulator.
Exposes 40 tools for managing kitty windows, tabs, layouts, text, appearance, and more via the Model Context Protocol. Communicates with kitty through its remote control protocol using the kitten CLI.
Prerequisites
kitty terminal emulator with remote control enabled
Node.js 20+
Related MCP server: tabby-mcp
Installation
npm install
npm run buildkitty.conf setup
Add these lines to your ~/.config/kitty/kitty.conf:
allow_remote_control yes
listen_on unix:/tmp/kitty-{kitty_pid}Restart kitty after making changes.
Configuration for Claude Code
Option 1: Running inside kitty (auto-detects socket)
Add to .claude/settings.json:
{
"mcpServers": {
"kitty": {
"command": "node",
"args": ["/path/to/kitty-mcp-server/dist/index.js"]
}
}
}When the MCP server runs inside a kitty window, it automatically picks up the KITTY_LISTEN_ON environment variable.
Option 2: Fixed socket path
{
"mcpServers": {
"kitty": {
"command": "node",
"args": ["/path/to/kitty-mcp-server/dist/index.js"],
"env": {
"KITTY_MCP_SOCKET": "unix:/tmp/kitty-12345"
}
}
}
}Environment variables
Variable | Description |
| Override the kitty remote control socket path. Takes highest priority. |
| Set automatically by kitty inside its windows. Used as fallback when |
| Override the kitty CLI binary name or path. Default: |
| Password for kitty remote control authentication, if configured. |
Tools
Discovery (read-only inspection)
kitty_ls-- list all OS windows, tabs, and windows as a JSON treekitty_get_text-- retrieve text content from a window (screen, scrollback, selection, last command output)kitty_get_colors-- get terminal color definitionskitty_select_window-- visually select a window with overlay labels
Window Management
kitty_launch-- launch a new process in a window, tab, or OS windowkitty_close_window-- close windowskitty_focus_window-- focus a windowkitty_resize_window-- resize a window within its layoutkitty_detach_window-- move windows to a different tab or OS windowkitty_set_window_title-- set window title
Tab Management
kitty_close_tab-- close tabskitty_focus_tab-- focus a tabkitty_set_tab_title-- set tab titlekitty_set_tab_color-- change tab bar colorskitty_detach_tab-- move tabs to a different OS window
Text / Input
kitty_send_text-- send text to windowskitty_send_key-- send key presses to windows
Scroll
kitty_scroll-- scroll window content (lines, pages, prompts, start/end)
Appearance
kitty_set_colors-- set terminal colorskitty_set_font_size-- set font sizekitty_set_spacing-- set padding and marginskitty_set_background_opacity-- set background opacitykitty_disable_ligatures-- control ligature rendering
Layout
kitty_goto_layout-- switch to a specific layoutkitty_last_used_layout-- toggle to the previous layoutkitty_set_enabled_layouts-- set which layouts are available for cycling
Markers
kitty_create_marker-- highlight text matching a patternkitty_remove_marker-- remove markers from a window
System
kitty_run-- run a program and get its outputkitty_action-- run a mappable kitty actionkitty_kitten-- run a kitten (kitty extension)kitty_load_config-- reload kitty configurationkitty_signal_child-- send Unix signals to foreground processeskitty_env-- change environment variables for new windowskitty_set_user_vars-- set user variables on windowskitty_resize_os_window-- resize, fullscreen, or hide OS windows
Composite (multi-step operations)
kitty_dump_scrollback-- dump scrollback to a temp file with paginationkitty_get_tab_text-- get text from all windows in a tab in one call
Utility
kitty_clear_cache-- clear the MCP server internal cachekitty_health_check-- verify kitty connectivity and server status
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/secemp9/kitty-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server