Skip to main content
Glama
jenova-marie

Keyboard Shortcuts MCP Server

by jenova-marie

Keyboard Shortcuts MCP Server

A Model Context Protocol (MCP) server that provides keyboard shortcuts for various operating systems, desktop environments, and applications. Uses Claude Opus for intelligent natural language querying of shortcuts.

Primary Use Case: Designed to support Claude's Computer Use tool by providing accurate, context-aware keyboard shortcuts for automated computer interactions.

Features

  • šŸ” Intelligent Search: Uses Claude Opus to understand natural language queries

  • šŸ–„ļø Multi-Platform: Support for Ubuntu (GNOME desktop), with architecture for macOS/Windows

  • šŸ“± App-Specific: Desktop apps (Firefox, VS Code), CLI tools (tmux, vim), and system shortcuts

  • šŸš€ Fast: All shortcut data loaded in-memory for quick filtering

Related MCP server: Rebrain MCP Server

Installation

# Install dependencies
pnpm install

# Build the server
pnpm build

Configuration

Set your Anthropic API key as an environment variable:

export ANTHROPIC_API_KEY="your-api-key-here"

Usage

Running Standalone

pnpm start

Integrating with Claude Desktop

Add to your Claude Desktop MCP configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "keyboard-shortcuts": {
      "command": "node",
      "args": ["/path/to/keyboard-shortcuts-mcp/dist/index.js"],
      "env": {
        "ANTHROPIC_API_KEY": "your-api-key-here"
      }
    }
  }
}

Tool: get_shortcuts

Query keyboard shortcuts using natural language.

Parameters

  • os (required): Operating system - "ubuntu", "macos", or "windows"

  • query (required): Natural language question about shortcuts

  • desktop (optional): Desktop environment - "gnome", "kde", etc.

  • application (optional): Specific application - "firefox", "tmux", etc.

Examples

// Query tmux shortcuts (no desktop needed for CLI tools)
{
  "os": "ubuntu",
  "application": "tmux",
  "query": "how do I split a pane vertically?"
}

// Query Firefox shortcuts on GNOME
{
  "os": "ubuntu",
  "desktop": "gnome",
  "application": "firefox",
  "query": "how to open a new private window"
}

// Query GNOME window management
{
  "os": "ubuntu",
  "desktop": "gnome",
  "query": "tile window to left half of screen"
}

Data Structure

Shortcuts are organized as:

data/
└── ubuntu/
    ā”œā”€ā”€ desktops/
    │   └── gnome/
    │       ā”œā”€ā”€ window-management.json
    │       ā”œā”€ā”€ system-functions.json
    │       └── ...
    ā”œā”€ā”€ apps/
    │   ā”œā”€ā”€ browser/
    │   │   ā”œā”€ā”€ firefox.json
    │   │   └── chrome.json
    │   ā”œā”€ā”€ editor/
    │   │   ā”œā”€ā”€ vscode.json
    │   │   └── vim.json
    │   └── ...
    └── tools/
        ā”œā”€ā”€ tmux.json
        ā”œā”€ā”€ vim.json
        └── ...

Each JSON file contains:

{
  "os": "ubuntu",
  "desktop": "gnome" | null,
  "application": "firefox" | null,
  "file": "firefox",
  "categories": [
    {
      "name": "Tab Management",
      "shortcuts": [
        {
          "keys": "Ctrl + T",
          "description": "New tab"
        }
      ]
    }
  ]
}

Development

# Watch mode (auto-reload on changes)
pnpm dev

# Build TypeScript
pnpm build

# Run built server
pnpm start

Architecture

  1. Data Loader (src/data-loader.ts): Loads all JSON files at startup into memory

  2. Opus Client (src/opus-client.ts): Wraps Anthropic SDK for intelligent queries

  3. MCP Server (src/index.ts): Exposes get_shortcuts tool via MCP protocol

The server filters shortcuts by OS/desktop/app, then passes relevant data + user query to Claude Opus for intelligent matching.

License

MIT

Available Tools

1 tool
get_shortcutsB

Query keyboard shortcuts for a specific OS, desktop environment, and/or application. Uses Claude Opus to intelligently search and return relevant shortcuts based on natural language queries.

ParametersJSON Schema
NameRequiredDescriptionDefault
osYesOperating system (e.g., ubuntu, macos, windows)
queryYesNatural language query about keyboard shortcuts (e.g., "how do I split a pane vertically?")
desktopNoDesktop environment (e.g., gnome, kde) - optional
applicationNoSpecific application (e.g., firefox, tmux) - optional

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions using 'Claude Opus to intelligently search,' which adds some context about the AI-driven behavior, but it fails to disclose critical traits like rate limits, authentication needs, response format, or potential errors. For a tool with no annotation coverage, this is a significant gap in behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded, consisting of two sentences that efficiently convey the tool's purpose and method. Every sentence adds value without redundancy, though it could be slightly more structured (e.g., separating functional and behavioral aspects).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (4 parameters, no annotations, no output schema), the description is moderately complete. It covers the core functionality and method but lacks details on output format, error handling, or operational constraints. Without an output schema, the description should ideally hint at return values, which it doesn't, leaving gaps in contextual understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, meaning the input schema fully documents all parameters. The description adds minimal value beyond the schema by mentioning 'natural language queries' and 'intelligently search,' which aligns with the 'query' parameter but doesn't provide additional syntax or format details. The baseline score of 3 is appropriate given the high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Query keyboard shortcuts for a specific OS, desktop environment, and/or application.' It specifies the verb 'query' and the resource 'keyboard shortcuts,' and mentions the intelligent search capability using Claude Opus. However, with no sibling tools, the differentiation aspect is not applicable, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by stating it handles 'natural language queries' and targets specific OS/application contexts, but it lacks explicit guidance on when to use this tool versus alternatives (e.g., other search methods). With no sibling tools, there's no comparison, but it doesn't provide exclusions or prerequisites, leaving room for improvement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3.3/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or confusion between tools. The single tool 'get_shortcuts' has a clear, distinct purpose that cannot be mistaken for any other functionality within this server.

Naming Consistency5/5

The single tool name 'get_shortcuts' follows a clear verb_noun pattern (get + shortcuts). With only one tool, consistency is inherently perfect as there are no other names to compare or conflict with.

Tool Count2/5

A single tool is generally too few for a server's purpose, especially one focused on keyboard shortcuts which could benefit from operations like listing available OS/applications, updating shortcuts, or searching by category. The scope feels thin and incomplete with just one query tool.

Completeness2/5

The server is severely incomplete for a keyboard shortcuts domain. While 'get_shortcuts' provides query functionality, there are obvious gaps: no ability to list supported systems/applications, create custom shortcuts, update existing ones, or manage shortcut sets. This will limit agent workflows significantly.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to interact with native Linux desktop applications through AT-SPI2 accessibility interfaces. Provides semantic element targeting, natural language search, and automation capabilities (clicking, typing, keyboard shortcuts) across GTK, Qt, and Electron applications.
    6
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Connects LLMs to your macOS Shortcuts library, enabling interactive workflows, discovery, and management through AppleScript and CLI integration.
    3
    11
    MIT

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/jenova-marie/keyboard-shortcuts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server