Skip to main content
Glama
Configurable Command MCP Server

Configurable Command MCP Server

by realmindsai

Configurable Command MCP Server

A flexible Model Context Protocol (MCP) server that allows you to define and execute arbitrary command-line tools through configuration files. Perfect for giving Claude Desktop access to specific command-line utilities in a secure, controlled manner.

Features

  • πŸ› οΈ Configuration-driven: Define tools via JSON without modifying code

  • πŸ”’ Secure execution: Parameter sanitization, directory restrictions, and command allowlisting

  • ⚑ Rate limiting: Prevent abuse with configurable execution limits

  • πŸ“ Parameter validation: Type checking, patterns, and required/optional parameters

  • 🎯 Directory scoping: Restrict tool execution to specific directories

  • ⏱️ Timeout control: Configurable execution timeouts per tool

  • πŸ“Š Output management: Size limits and structured result formatting

Related MCP server: Claude MCP Command Server

Setup Instructions

1. Create the project directory and install dependencies

cd /Users/dewoller/code/generic_mcp
npm install

2. Build the TypeScript code

npm run build

3. Configure your tools

Edit the tools.json file to define your command-line tools. The file is already configured with useful examples like:

  • list_files: List directory contents

  • grep_search: Search for patterns in files

  • word_count: Count lines/words/characters

  • git_status: Check git repository status

  • find_files: Find files by pattern

  • And more!

4. Configure Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "command-executor": {
      "command": "node",
      "args": ["/Users/dewoller/code/generic_mcp/dist/index.js"],
      "env": {
        "CONFIG_PATH": "/Users/dewoller/code/generic_mcp/tools.json"
      }
    }
  }
}

5. Restart Claude Desktop

After saving the configuration, restart Claude Desktop to load the MCP server.

Testing the Installation

Run Integration Tests

npm run test:integration

This will test several tools and show you their output.

Manual Testing in Development Mode

# Run in development mode (with TypeScript)
npm run dev

# Or run the built version
npm start

Usage Examples

Once configured, you can ask Claude to use these tools:

  • "List all JavaScript files in my code directory"

  • "Search for TODO comments in the project"

  • "Show me the git status"

  • "Count lines in all Python files"

  • "Find all markdown files"

Adding Custom Tools

To add a new tool, edit tools.json:

{
  "name": "my_tool",
  "description": "Description for Claude",
  "command": "actual-command",
  "args": ["-flag", "{parameter}"],
  "parameters

Available Tools

1 tool
read_docs_by_listB

Read multiple documents (PDF, Word, HTML) using pandoc

Inputs: files (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as reading multiple document types using pandoc, making it distinct by default.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'read_docs_by_list' follows a clear verb_noun pattern, and there are no other tools to compare it against for inconsistency.

    Tool Count2/5

    A single tool is too few for a server named 'Configurable Command MCP Server', which suggests a broader scope of configurable commands. This minimal toolset feels thin and underdeveloped for the implied purpose, indicating a significant mismatch.

    Completeness1/5

    The server's name implies configurability and command execution, but the single tool only covers document reading. There are obvious gaps, such as lacking tools for configuration management, command execution, or other document operations, making the surface severely incomplete for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that allows integration with Claude Desktop by creating and managing custom tools that can be executed through the MCP framework.
      95 npm
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server built with the mcp-framework for developing and managing custom tools. It provides a structured foundation for building and integrating modular components like data processors and API clients into Claude Desktop.
      11 npm
      -
    • A
      license
      A
      quality
      B
      maintenance
      Local MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.
      3
      MIT