Skip to content
MCP server

Terminal MCP

MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.3.1
Listing updated
4 days ago

About Terminal MCP

Terminal MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add terminal-mcp -- uvx terminal-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "terminal-mcp": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "terminal-mcp": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "terminal-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "terminal-mcp": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "terminal-mcp": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ]
    }
  }
}

Configuration

  • TERMINAL_MCP_MAX_SESSIONSMaximum concurrent sessions
  • TERMINAL_MCP_IDLE_TIMEOUTSeconds before auto-close (default 1800)

Pricing

Open source

Terminal MCP FAQ

Is Terminal MCP free?

Yes. Terminal MCP is open source, so you can use and self-host it for free.

How do I add Terminal MCP to Claude Code?

Run this command in your terminal: claude mcp add terminal-mcp -- uvx terminal-mcp

What are the best alternatives to Terminal MCP?

The closest alternatives to Terminal MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Terminal MCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools