Skip to main content
Glama
Fraud Alert MCP Server

Fraud Alert MCP Server

INITIALIZATION

Go to Claude, and under settings, choose Connectors. Add a new connector and paste the following link: "https://fraud-alert-mcp-ha-hak-team-amrita-university-amritapuri-campus.app.nitrocloud.ai/mcp" Give it the required action permissions and reference it by a name. You can now use this in Claude.

Fraud Alert MCP Server

A Model Context Protocol (MCP) server for real-time fraud detection and transaction analysis. Integrates with Claude and other AI models to provide intelligent fraud risk assessment.

What is MCP?

The Model Context Protocol (MCP) is a standard that allows AI models like Claude to safely invoke tools and access resources from external servers. This MCP server exposes fraud detection tools that Claude can call to analyze transactions, flag suspicious activity, and manage fraud rules.

Related MCP server: financial-fraud-detection-mcp

How to Use This Server

1. Local Development

# Install dependencies
npm install

# Start the MCP server
npm run dev

The server will start and be ready to accept MCP connections.

2. Connect in Claude Desktop

Add this server to your claude_desktop_config.json:

{
  "mcpServers": {
    "fraud-alert": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

Then restart Claude Desktop. The fraud detection tools will appear in the Tools panel.

3. Programmatic Integration

Use any MCP client library to connect:

// Example: Node.js MCP client
const client = new MCPClient();
await client.connect('fraud-alert');
const result = await client.callTool('analyze_transaction', {
  transactionId: 'TX-123',
  userId: 'U-456',
  amount: 5000,
  // ... other fields
});

Available Tools

analyze_transaction

Analyzes a transaction for fraud risk. Returns a risk score (0-100), identified risk factors, and a recommended action.

Input:

  • transactionId (string): Unique transaction ID

  • userId (string): User ID

  • amount (number): Transaction amount

  • currency (string): Currency code (e.g., USD)

  • merchantCategory (string): Merchant category (e.g., electronics)

  • location (object): Transaction location with lat/long/country

  • deviceId (string): Device identifier

  • timestamp (string): ISO 8601 timestamp

Output:

  • isFraudulent (boolean): Fraud flag

  • riskScore (0-100): Risk score

  • riskFactors (array): List of identified risk factors

  • recommendedAction (enum): ALLOW, REVIEW, or BLOCK

flag_transaction_status

Updates the status of a transaction and triggers an alert.

Input:

  • transactionId (string): Transaction ID

  • actionTaken (enum): BLOCKED, FLAGGED_FOR_REVIEW, or CLEARED

  • agentReasoning (string): Reason for the action

Output:

  • success (boolean): Operation status

  • alertId (string): Unique alert ID

  • timestamp (string): Alert timestamp

Project Structure

fraud-alert-mcp/
├── src/
│   ├── modules/
│   │   ├── detection/          # Fraud detection logic
│   │   │   ├── detection.tools.ts
│   │   │   ├── detection.service.ts
│   │   │   └── detection.module.ts
│   │   ├── calculator/         # Calculator tools
│   │   ├── governance/         # Governance tools
│   │   └── ...
│   ├── widgets/                # UI widgets for tool results
│   ├── app.module.ts           # Main app module
│   └── index.ts                # Server entry point
├── package.json
├── tsconfig.json
└── README.md

Environment Variables

Create a .env file:

ANTHROPIC_API_KEY=sk-ant-...
PORT=3000

Testing

Run the included test script to verify the server works with Claude:

node test-fraud-mcp.js

This script connects to your local MCP server and runs sample fraud analysis scenarios.

Build & Deploy

# Build TypeScript
npm run build

# Start production server
npm start

License

MIT

Available Tools

9 tools
analyze_transactionB

Analyzes a real-time transaction against known patterns to return a fraud probability score

Inputs: amount (required), userId (required), currency (required), deviceId (required), +4 more.

create_userB

Create a new user in the system

Inputs: name (required), email (required), userId (required), phone, +1 more.

delete_userB

Delete a user and remove their stored information

Inputs: userId (required).

flag_transaction_statusB

Allows the AI agent to take action by updating the status of a transaction and triggering an alert

Inputs: actionTaken (required), transactionId (required), agentReasoning (required).

get_userB

Retrieve a user by ID

Inputs: userId (required).

get_user_risk_profileB

Fetches historical transaction behavior and current risk standing for a specific user to give the AI agent context

Inputs: userId (required).

list_usersA

List all users in the system

Inputs: no named parameters.

update_fraud_ruleC

Allows the AI to dynamically deploy new fraud detection rules based on emerging attack vectors

Inputs: action (required), ruleName (required), ttlHours (required), condition (required).

update_userC

Update user information (e.g., location, phone, address)

Inputs: userId (required), name, email, phone, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation5/5

    All tools have clearly distinct purposes: four focus on fraud-specific actions (analyzing, flagging, risk profiling, rule updating) and five on user CRUD operations. No overlapping functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern (e.g., flag_transaction_status, create_user), making it predictable for an agent.

    Tool Count5/5

    9 tools is well-scoped for the server's purpose, covering both user management and fraud operations without excess or deficiency.

    Completeness4/5

    User CRUD is complete, and fraud operations cover analysis, flagging, risk profiling, and rule updating. However, missing tools to retrieve transactions or list fraud rules create minor gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to operate a banking fraud detection system by providing tools for submitting transactions, reading alerts, checking risk, and freezing/unfreezing accounts, with fraud rules enforced in-database.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Investigate fraud directly from Claude, Cursor, or any MCP-compatible client. Analyze suspicious activity with clear, evidence-backed verdicts. Pivot from a single signup to every account sharing the same device, IP address, or email inbox. Check entities against a cross-operator abuse network, review linked accounts, and efficiently process your fraud review queue. Read-only by default, with no r
      10
      48 npm
      MIT