Skip to main content

TWS DREX MCP Server

This MCP server provides tools to interact with the DREX document extraction AI API and LoginRadius authentication.

🚀 Get Started

This guide will help you install and run the TWS DREX MCP server.

We recommend using uv to manage your Python environment and run the server.

Install uv

If you don't have uv installed, you can install it by following the instructions on the official documentation: Installation | uv

A common way to install uv is using curl (for Linux/macOS) or by downloading the executable (for Windows):

# For Linux/macOS
curl -fsSL https://astral.sh/uv/install.sh | sh
# For Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Install the TWS DREX MCP Server

Once you have uv installed, you can install the tws-drex-mcp package:

uv pip install tws-drex-mcp

Alternatively, using pip:

pip install tws-drex-mcp

Run the standalone Server

You can run the installed server using uv run:

uv run -m tws_drex_mcp
# or
# uvx tws-drex-mcp

Claude Desktop Configuration

To use the DREX MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration file. The location of this file varies by operating system.

Here is an example configuration for the TWS DREX MCP server:

{
  "mcpServers": {
    "DREX": {
      "command": "uv",
      "args": ["tws-drex-mcp"],
      "env": {
        "DREX_BASE_URL": "<YOUR_DREX_BASE_URL>",
        "LR_API_KEY": "<YOUR_LR_API_KEY>",
        "LR_API_SECRET": "<YOUR_LR_API_SECRET>"
      },
      "transportType": "stdio"
    }
  }
}

Replace <YOUR_DREX_BASE_URL>, <YOUR_LR_API_KEY>, and <YOUR_LR_API_SECRET> with your actual values.

Configuration

Before using the server's tools, ensure the following environment variables are set:

  • DREX_BASE_URL: The base URL of the target DREX API instance.
  • LR_API_KEY: Your LoginRadius API key.
  • LR_API_SECRET: Your LoginRadius API secret.

The MCP framework will automatically pick up these variables when running the server's tools.

Functionality

The following tools are provided by the server:

  • get_token: Obtains an authentication token from LoginRadius using a username and password.
  • file_upload: Uploads files to the DREX API.
  • get_status: Retrieves the processing status of a file in the DREX API.
  • get_file_results: Retrieves the processed results of a file in the DREX API.

Usage

get_token

This tool obtains an authentication token from LoginRadius using a username and password.

Example:

{
    "username": "your_username",
    "password": "your_password"
}

file_upload

This tool uploads files or directories to DREX API. The processing time will take 10 - 80 seconds for each file.

Example:

{
    "file_paths": ["path/to/file1.txt", "path/to/dir"],
    "uploaded_by": "user_name",
    "token": "your_access_token"
}

get_status

This tool retrieves the processing status of a file in the DREX API.

Example:

{
    "file_id": "file_id_1",
    "token": "your_access_token"
}

get_file_results

This tool retrieves the processed results of a file in the DREX API.

Example:

{
    "file_id": "file_id_1",
    "token": "your_access_token"
  }

LoginRadius Initialization

The LoginRadius SDK is initialized using the LR_API_KEY and LR_API_SECRET environment variables.

Dependencies

The dependencies required to run this server are listed in the pyproject.toml file.

Download files

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

Source Distribution

tws_drex_mcp-0.2.1.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

tws_drex_mcp-0.2.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file tws_drex_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: tws_drex_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tws_drex_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a1fb7ce0f9c0a446c42aa9ac6dd860bff60f32a509b0448e5272fbc68359bbfc
MD5 f471d82bea67aae512f10dcd3ff49b1a
BLAKE2b-256 be7e8137626548b76b12a6465de5c6f77b71a9f3e44acbf80c6dd2a90dc8074c

See more details on using hashes here.

File details

Details for the file tws_drex_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tws_drex_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tws_drex_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d5ae9d29e6ba6164e8872ce2d52d0de10815accc0f71f55f3c7016139b5d097
MD5 ae2fb6fd723ef752830ed8d38f809fc0
BLAKE2b-256 fbf9f5dec9e3248847ec43085e78d1c55d3ac1c1e28f61cad85e97ed2753a687

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