Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Terminal

    MCP server for executing terminal commands through Claude Desktop

    8 stars
    JavaScript
    Updated Jul 20, 2025

    Table of Contents

    • Features
    • Prerequisites
    • Installation
    • Local Development Setup
    • Available Tools
    • execute_command
    • change_directory
    • get_current_directory
    • get_terminal_info
    • Usage Examples
    • Security Considerations
    • Development
    • Project Structure
    • Contributing
    • License

    Table of Contents

    • Features
    • Prerequisites
    • Installation
    • Local Development Setup
    • Available Tools
    • execute_command
    • change_directory
    • get_current_directory
    • get_terminal_info
    • Usage Examples
    • Security Considerations
    • Development
    • Project Structure
    • Contributing
    • License

    Documentation

    Terminal MCP Server

    A Model Context Protocol (MCP) server that enables execution of terminal commands through Claude Desktop.

    Features

    • Execute any terminal command with arguments and options
    • Navigate between directories while maintaining state
    • Get terminal environment information
    • Full output capture (stdout, stderr, exit codes)
    • Proper error handling and formatting

    Prerequisites

    • Node.js v18 or higher
    • TypeScript
    • Claude Desktop

    Installation

    1. Clone the repository:

    bash
    git clone https://github.com/stat-guy/terminal.git
    cd terminal

    2. Install dependencies:

    bash
    npm install

    3. Build the project:

    bash
    npm run build

    Local Development Setup

    1. Create or edit your Claude Desktop configuration file:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%\\Claude\\claude_desktop_config.json

    Add the following configuration:

    json
    {
      "mcpServers": {
        "terminal": {
          "command": "node",
          "args": [
            "[PATH_TO_REPO]/dist/index.js"
          ],
          "env": {
            "PERMISSION_REQUIRED": "true"
          }
        }
      }
    }

    Replace [PATH_TO_REPO] with the actual path to your cloned repository.

    2. Restart Claude Desktop

    Available Tools

    execute_command

    • Execute any terminal command
    • Supports command arguments and options
    • Captures full output and exit codes

    change_directory

    • Change the current working directory
    • Maintains state between commands
    • Supports relative and absolute paths

    get_current_directory

    • Get the current working directory path

    get_terminal_info

    • Get information about the terminal environment
    • Shows shell, user, platform, and recent command history

    Usage Examples

    Ask Claude to execute terminal commands like:

    code
    Can you check what's in my current directory?
    -> Executes: ls -la
    
    Can you tell me the current directory?
    -> Executes: pwd
    
    Can you change to the Downloads folder?
    -> Executes: cd ~/Downloads

    Security Considerations

    • The server requires explicit user permission through Claude Desktop for command execution
    • Environment variables can be controlled through the configuration
    • Command execution includes timeouts and error handling

    Development

    1. Watch for changes:

    bash
    npm run watch

    2. Test changes:

    • Make changes to source files in src/
    • Rebuild using npm run build
    • Restart Claude Desktop to load changes

    Project Structure

    code
    /
    ├── src/
    │   └── index.ts    # Main server implementation
    ├── package.json    # Project configuration and dependencies
    ├── tsconfig.json  # TypeScript configuration
    └── README.md      # This file

    Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    License

    MIT License

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k