Skip to main content

An MCP server providing tools to interact with the DREX document extraction AI API via LoginRadius authentication.

Project description

TWS DREX MCP Server

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

Installation

Install the package using pip:

pip install tws-drex-mcp

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.

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.

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 to the DREX API.

Example:

{
    "file_paths": ["path/to/file1.txt", "path/to/file2.png"],
    "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 mcp-server-demo/pyproject.toml file.

Running the Server

To run the server, use the following command:

uv --directory mcp-server-demo run --with mcp[cli] mcp run mcp-server-demo/server.py

To debug the server, use the following command:

mcp dev server.py

To install the server to Claude desktop, use the following command:

mcp install server.py

Example configuration:

{
  "mcpServers": {
    "DREX": {
      "command": "uv",
      "args": [
        "--directory",
        "<your-repo-path>\\mcp-server-demo",
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "<your-repo-path>\\mcp-server-demo\\server.py"
      ]
    }
  }
}

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

tws_drex_mcp-0.1.5.tar.gz (29.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.1.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tws_drex_mcp-0.1.5.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tws_drex_mcp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 fb8657c6af227153402dce62fe50821b4d28e21128e658efbd0bd387117cab6b
MD5 6eb9a16adf85e32f9df987902724868d
BLAKE2b-256 207868b996b4d1ed1065cfb8df1f52c6a1d29c44a14181f56cd3c5b45e4ff2fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tws_drex_mcp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tws_drex_mcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 50585a7a673ccc42f10e157a781939d4a689c159f22db132c69d9d59030ef9fb
MD5 e3c8bc96a6bbe57398f1f3bd406b3652
BLAKE2b-256 77cd2420908923c260f45f9be6c9b8c79fc7fad28d2f481904fda51699df16f5

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