Interactive MCP Server

MCP server for real interactive terminal sessions — REPLs, SSH, databases, Docker

Local serverstdioPython

What is the Interactive MCP server?

MCP server for real interactive terminal sessions — REPLs, SSH, databases, Docker. The interactive mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 2 defined tools rather than through you.

What it actually does

MCP server that gives AI agents (Claude Code, Cursor, Windsurf, etc.) real interactive terminal sessions. Run REPLs, SSH, database clients, and any interactive CLI — with clean text output, smart completion detection, and 7-layer security.

Adding it to your client

The server ships on npm as mcp-interactive-terminal, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Its toolset

Everything the assistant can do here goes through one of these:

  • Cursor — Go to Settings > MCP Servers, click Add Server, and enter:
  • Windsurf — The Windsurf tool exposed by this server

Configuration

You will need 4 environment variables: MCP_TERMINAL_ALLOWED_COMMANDS, MCP_TERMINAL_REDACT_SECRETS, MCP_TERMINAL_IDLE_TIMEOUT, MCP_TERMINAL_DEFAULT_TIMEOUT. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the interactive mcp server does with a few real requests.

When to reach for it

Among the cloud and infrastructure options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Interactive's toolset — Cursor, Windsurf — is a fair guide to whether it matches your workflow. It is maintained by amol21p; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Interactive's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
CursorGo to **Settings > MCP Servers**, click **Add Server**, and enter:
WindsurfThe Windsurf tool exposed by this server.

How to install the Interactive MCP server

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["-y", "mcp-interactive-terminal"],
      "env": {
        "MCP_TERMINAL_ALLOWED_COMMANDS": "bash,python3,node,psql",
        "MCP_TERMINAL_REDACT_SECRETS": "true",
        "MCP_TERMINAL_IDLE_TIMEOUT": "300000"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MCP_TERMINAL_ALLOWED_COMMANDSConfiguration value read at startup.Optional
MCP_TERMINAL_REDACT_SECRETSCredential the server authenticates with.Yes
MCP_TERMINAL_IDLE_TIMEOUTConfiguration value read at startup.Optional
MCP_TERMINAL_DEFAULT_TIMEOUTConfiguration value read at startup.Optional

Example prompts to try

  • Use Interactive to Cursor.
  • Use Interactive to Windsurf.

Frequently asked questions

It connects Interactive to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Cursor, Windsurf) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Interactive directly.