Skip to main content

MCP server providing computer control tools for AI agents

Project description

realtimex-computer-use

A MCP (Model Context Protocol) server that provides computer control tools for AI agents, enabling browser automation and system interactions.

Features

  • Open URLs in web browsers
  • Support for multiple browsers (Chrome, Firefox, Safari, Edge)
  • Open URLs in new tabs or windows
  • Retrieve configured credentials for authentication
  • Securely type credential fields without exposing values to LLM
  • Graceful fallback to system default browser
  • Cross-platform support (Windows, macOS, Linux)

Tools

The server implements the following tools:

Browser Control

  • open_browser - Open a URL in the specified browser or system default
  • open_browser_new_tab - Open a URL in a new browser tab
  • open_browser_new_window - Open a URL in a new browser window

Each tool supports browser selection (chrome, firefox, safari, edge, default) and provides graceful fallback to the system default browser if the specified browser is unavailable.

Credential Management

  • get_credentials - Get available credentials for authentication
  • type_credential_field - Securely type a credential field value

The credential system enables secure login automation:

  • get_credentials: Returns credential names and types (configured via CREDENTIAL_SERVER_URL)
  • type_credential_field: Types credential field values without exposing them in responses or logs

Security: Credential values never appear in conversation history or tool responses.

Installation

Prerequisites

  • Python 3.10+
  • FastMCP framework
  • uv package manager

Install Steps

Install the package:

pip install realtimex-computer-use

Or using uvx for immediate use:

uvx realtimex-computer-use

MCP Client Configuration

To use this server with an MCP-compatible client, configure it to run the server via stdio transport.

Development Configuration (local installation):

{
  "mcpServers": {
    "realtimex-computer-use": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/realtimex-computer-use",
        "run",
        "realtimex-computer-use"
      ]
    }
  }
}

Production Configuration (published package):

{
  "mcpServers": {
    "realtimex-computer-use": {
      "command": "uvx",
      "args": [
        "realtimex-computer-use"
      ]
    }
  }
}

Development

Building and Publishing

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build
  1. Publish to PyPI:
uv publish

Note: Set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

For the best debugging experience, use the MCP Inspector.

Launch the MCP Inspector via npm:

npx @modelcontextprotocol/inspector uv --directory /path/to/realtimex-computer-use run realtimex-computer-use

The Inspector will display a URL that you can access in your browser to begin debugging.

Usage Examples

Open a URL in the default browser

{
  "tool": "open_browser",
  "arguments": {
    "url": "https://www.python.org"
  }
}

Open a URL in Chrome

{
  "tool": "open_browser",
  "arguments": {
    "url": "https://www.python.org",
    "browser": "chrome"
  }
}

Open a URL in a new tab

{
  "tool": "open_browser_new_tab",
  "arguments": {
    "url": "https://docs.python.org",
    "browser": "firefox"
  }
}

Get available credentials

{
  "tool": "get_credentials",
  "arguments": {}
}

Type credential field securely

{
  "tool": "type_credential_field",
  "arguments": {
    "credential_id": "cred_abc123",
    "field_name": "username"
  }
}

Secure Login Workflow:

  1. Call get_credentials() to list available credentials
  2. Navigate to username field and click
  3. Call type_credential_field(credential_id, "username")
  4. Navigate to password field and click
  5. Call type_credential_field(credential_id, "password")
  6. Submit the form

Configuration: Set CREDENTIAL_SERVER_URL environment variable (defaults to http://localhost:3001)

Future Expansion

This package is designed to support additional computer control capabilities:

  • Desktop automation (PyAutoGUI integration)
  • File system operations
  • System information retrieval
  • Process management
  • Additional credential operations (select, validate)

Architecture

The codebase is organized for maintainability and extensibility:

realtimex-computer-use/
├── fastmcp.json          # FastMCP configuration (dependencies)
├── pyproject.toml        # Package configuration and metadata
├── smithery.yaml         # Smithery MCP registry configuration
└── src/
    └── realtimex_computer_use/
        ├── __init__.py   # Package entry point
        ├── __main__.py   # CLI entry point
        ├── server.py        # MCP server initialization and tool registration
        └── tools/              # Modular tool implementations
            ├── __init__.py
            ├── browser.py      # Browser control tools
            ├── credentials.py  # Credential retrieval tools
            └── credential_typing.py # Secure credential typing

Configuration Files:

  • fastmcp.json: Defines FastMCP dependencies and entrypoint (follows FastMCP 2.11.4+ standard)
  • pyproject.toml: Python package metadata, dependencies, and build configuration
  • smithery.yaml: Configuration for Smithery MCP server registry

Adding New Tools:

  1. Create a new module in src/realtimex_computer_use/tools/ (e.g., credentials.py)
  2. Implement tool functions with proper type hints and docstrings
  3. Register tools in server.py using mcp.tool()(module.function_name)

License

This project is proprietary software. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

realtimex_computer_use-1.3.0.tar.gz (185.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

realtimex_computer_use-1.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file realtimex_computer_use-1.3.0.tar.gz.

File metadata

File hashes

Hashes for realtimex_computer_use-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4d9f51e1c12b298c70ab9a6618f1a2b7f9155e4c33e20d3131d2a06b0e41218e
MD5 10ee35f33c9c0817b7568a6393ed4222
BLAKE2b-256 da2573e17258c83a5cc1e861be8eb9af649b89949123ee3fcb3d8651d0f42b27

See more details on using hashes here.

File details

Details for the file realtimex_computer_use-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for realtimex_computer_use-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ce07cfd845735b4509fb8f5b4af78321a223d3b58fa576e07359a95db74a07
MD5 de88f5cbb7145816ce2a958bdb59d3f2
BLAKE2b-256 627719d31afdcca8c098e9f312c91fa3c206dc23b5bdbbfc520b49d720034614

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page