Skip to main content

Fraud Prevention MCP server using FraudLabs Pro API.

Project description

FraudLabs Pro MCP Server

mcp-fraudlabspro MCP server

An MCP-compliant server that integrates the FraudLabs Pro fraud detection system into AI assistants like Claude Desktop. This server enables real-time screening of order transactions and user-related events (like logins or registrations) to identify and prevent fraudulent activities.

Features

  • Order Screening: Validate e-commerce orders using IP addresses, billing/shipping details, and credit card information.

  • User Screening: Analyze account-level events (registrations/logins) for suspicious patterns.

  • Transaction Management: Retrieve historical results for orders or user screenings.

  • Feedback Loop: Approve, Reject, or Blacklist transactions directly through the AI interface to improve the detection engine.

Prerequisites

  • Python 3.10+ installed.
  • FraudLabs Pro API Key: You can obtain a free or paid API key at FraudLabs Pro.

Installation

  1. Install Dependencies Ensure you have the required libraries installed in your environment:
pip install mcp httpx uv
  1. Configuration To use this server with an MCP client (such as Claude Desktop), add the following entry to your configuration file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "fraudlabspro": {
      "command": "uvx",
      "args": [
        "mcp-fraudlabspro"
      ],
      "env": {
        "FRAUDLABSPRO_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Available Tools

📦 Order Management

Tool Description Key Arguments
screen_order Screen an order for fraud. ip, email, amount, bin_no, bill_country, ship_country
get_order_result Retrieve the validation result for a previous order. transaction_id
feedback_order Update order status (APPROVE, REJECT, BLACKLIST). transaction_id, action, note

👤 User Management

Tool Description Key Arguments
screen_user Screen user events like logins or signups. email, ip, phone, first_name, last_name
get_user_result Retrieve results for a previous user screening. user_transaction_id
feedback_user Update user event status based on manual review. user_transaction_id, action, reason

Development & Logging

The server uses FastMCP and sends logs through the MCP context. You can view logs in the Claude Desktop "Developer Console" to inspect outgoing payloads and API responses for debugging.

Common Error: If you receive "An API key is needed," ensure the FRAUDLABSPRO_API_KEY environment variable is correctly set in your configuration file and that you have restarted the MCP client.

License

See the LICENSE file.

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

mcp_fraudlabspro-1.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

mcp_fraudlabspro-1.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_fraudlabspro-1.1.1.tar.gz.

File metadata

  • Download URL: mcp_fraudlabspro-1.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mcp_fraudlabspro-1.1.1.tar.gz
Algorithm Hash digest
SHA256 67eb4230a68db1ddfe5aee27ae441fd674b2c6d291f90abd69649f4880add80d
MD5 4f9d543982da59cf878f4a118f35f213
BLAKE2b-256 93897879378c8ce1a44c757b94df28bdad78dbe004803b98d6bc3cc5677077dd

See more details on using hashes here.

File details

Details for the file mcp_fraudlabspro-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_fraudlabspro-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f018027d9500fbc5b091649ad9761c2556c5b935f20178f04d4e0328b3f3987
MD5 8425c264bdb5916a7fcc2f240b671000
BLAKE2b-256 3c476303c31b73c297f9a128e95c2b5e1f299f9a46aa323fc4bc78eb696552ba

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