InvoiceX-Ray
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@InvoiceX-RayAnalyze shipment of 500oz gold for price deviation from spot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
InvoiceX-Ray β TBML Detection MCP Server
Trade-Based Money Laundering (TBML) Detection Agent for Indian AD-Bank Trade Finance under FEMA 2026
Built with Nitrostack SDK Β· Model Context Protocol (MCP) Β· TypeScript Β· PostgreSQL / Supabase
π Overview & Problem Statement
InvoiceX-Ray is a specialized Model Context Protocol (MCP) server that empowers AI agents and compliance officers to detect Trade-Based Money Laundering (TBML) in Letter of Credit (LC) and Export-Import finance.
What It Does
Unlike simple document OCR or basic text summarizers, InvoiceX-Ray is a multi-layered cross-referencing engine. It identifies the structural manipulation gap in trade transactions β over/under-invoicing, phantom shipments, duplicate billing, and illegal offshore capital flight β by cross-analyzing declared invoice valuations against independent commodity benchmarks, customs records, and regulatory timelines simultaneously.
The FEMA 2026 Regulatory Environment
Under India's Foreign Exchange Management (Export and Import) Regulations, 2026 (effective October 1, 2026):
Tightened Realization Windows: Strict timelines for export proceed realizations monitored via RBI's EDPMS/IDPMS networks.
Severe Financial Exposure: Section 13 mandates penalties up to 300% of transaction value for unauthorized delays or valuation manipulation.
Bank Liability: Authorized Dealer (AD) Category-I banks carry direct regulatory liability for every unflagged trade transaction.
Related MCP server: Enterprise Financial Compliance Audit Framework
π Key Features & Innovations
Counterfactual Valuation Engine Instead of presenting abstract percentages, InvoiceX-Ray generates a concrete Counterfactual View:
"This shipment declares $1,475,000 for 500 oz of Gold Bullion ($2,950/oz). At the current market spot benchmark of $2,200/oz, the shipment should cost $1,100,000. The $375,000 gap is the suspected illicit capital flight transfer."
Dynamic AI Commodity Benchmarking
World Bank API Integration: Live macroeconomic inflation scaling (
FP.CPI.TOTL.ZG) dynamically adjusts commodity benchmark baselines.On-the-Fly Benchmark Generation: If a commodity benchmark is missing from the database, the server queries Groq AI (
llama-3.3-70b-versatile) to calculate realistic spot prices and 90-day distribution statistics, automatically saving and caching them to PostgreSQL.
Multi-Verification Toolset (11 MCP Tools)
DGFT IEC Validation: Verifies Importer-Exporter Code caution-listing status via registrar records.
ICEGATE Customs Verification: Detects weight discrepancies between invoice declarations and port container weights.
OpenSanctions PEP/Sanction Check: Live API screening against global watchlists (OFAC, UN, EU).
Maritime Route Feasibility: Evaluates geospatial routing anomalies (e.g. vessel shipments to landlocked destinations like Zurich).
Double-Financing Detection: Cross-checks shipping bills across different AD Bank IFSC codes to prevent duplicate loan filings.
Automated Regulatory Document Generation
FIU-IND Suspicious Transaction Report (STR): Full narrative drafting powered by Groq LLM.
RBI Form ETX: Automated drafting of extension/write-off applications for overdue bills.
HTML Audit Reports: Print-ready, executive-level counterfactual valuation reports.
Dual MCP Transport
Standard
stdiotransport for direct CLI/IDE integration.Express
sse(Server-Sent Events) transport for web dashboard connections.
π System Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Trade Finance Dashboard (Next.js + Recharts) β
β Counterfactual View: Declared vs Benchmark β
β [Member 4] β
ββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β MCP Client (Stdio / SSE)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Nitrostack MCP Server [Member 1] β
β β
β RESOURCES TOOLS PROMPTS β
β βββββββββββββββββββ βββββββββββββββββββ ββββββββββββ β
β β Invoice Feed β β Price Deviation β β STR Gen β β
β β (txns + shippingβ β (z-score, IQR, β β Template β β
β β docs) β β counterfactual)β β β β
β β β β β β Red Flag β β
β β Benchmark Feed β β Timeline Risk β β Summary β β
β β (spot + 90d β β (FEMA 300% β ββββββββββββ β
β β stats + IQR) β β penalty) β β
β β β β β β
β β EDPMS Status β β Counterparty β β
β β (realization β β Pattern Scanner β β
β β + FETERS) β β β β
β βββββββββββββββββββ β Sanctions, DGFT,β β
β β ICEGATE, FormETXβ β
β βββββββββββββββββββ β
β DbDataProvider Interface β
βββββββββββββββ¬βββββββββββββββββββββββ¬ββββββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
β Groq / World Bank β β PostgreSQL / Supabase β
β (AI Reasoning & β β (Trade txns, HS benchmarks, β
β Inflation Data) β β EDPMS records) β
β [Member 3] β β [Member 2] β
βββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββπ MCP Primitives Reference
Resources (Data Streams)
URI | Description |
| Returns all LC/Export trade transaction records with shipping documentation |
| Templated resource to retrieve individual transaction details |
| Global commodity market price reference table by HS Code |
| RBI EDPMS realization records with countdown timelines and realization status |
Tools (Detection Logic & Actions)
Tool Name | Input Arguments | Description |
|
| Retrieves all stored trade transactions |
|
| Cross-references unit price against benchmark z-score & IQR; returns counterfactual gap |
|
| Checks EDPMS realization deadlines; calculates 300% FEMA penalty exposure |
|
| Scans for identical value repeats, rapid succession, and round-trip invoicing |
|
| Verifies DGFT registration and caution-listing status |
|
| Cross-checks declared cargo weight against customs records |
|
| Screens entities against OpenSanctions PEP/OFAC watchlists |
|
| Evaluates maritime shipping feasibility and landlocked port risks |
|
| Detects duplicate shipping bill filings across AD banks |
|
| Generates a print-ready HTML audit report |
|
| Generates an official RBI Form ETX draft for overdue bills |
|
| Synthesizes accumulated flags into an FIU-IND compliant STR narrative |
Prompts (LLM Templates)
Prompt | Description |
| AML Compliance Officer prompt for formal STR drafting under FEMA 2026 |
| Executive summary prompt for relationship managers and credit committees |
π₯ Team Responsibilities & Handoff
Role | Member | Responsibilities | Artifact Link |
MCP Architect | Member 1 | Nitrostack setup, MCP schemas, detection tools, transport routing | |
Data Synthesizer | Member 2 | Supabase DDL schema, PostgreSQL provider, synthetic data seeder | |
AI Engineer | Member 3 | Groq/Claude API integration, prompt templates, STR narrative generation | |
UI/UX Specialist | Member 4 | React/Next.js dashboard, Recharts counterfactual view, STR editor |
π» Quick Start & Installation
Prerequisites
Node.js 18+
PostgreSQL or Supabase Database
Setup Instructions
Clone & Install Dependencies:
git clone https://github.com/DevNarayanU/MCP-Nitro.git cd nitrostack npm installConfigure Environment Variables: Create a
.envfile in the root directory:# Server Configuration SERVER_NAME=invoicex-ray SERVER_VERSION=1.0.0 MCP_TRANSPORT=stdio # "stdio" or "sse" PORT=3000 # Database Connection DATABASE_URL="postgresql://postgres:[PASSWORD]@db.[PROJECT-ID].supabase.co:5432/postgres" # AI & External APIs (Optional for live LLM features) GROQ_API_KEY="your-groq-api-key" GROQ_MODEL="llama-3.3-70b-versatile" OPENSANCTIONS_API_KEY="your-opensanctions-api-key" # Thresholds PRICE_DEVIATION_THRESHOLD=20 TIMELINE_RISK_DAYS=15Database Migration & Seeding: Run the seeding script to create PostgreSQL tables and populate clean + planted TBML transactions:
npm run seedRun Server:
# Development mode with hot-reload npm run dev # Production build & start npm run build npm run start:prod
MCP Client Configuration (stdio)
Add this configuration to your Claude Desktop or MCP Client settings (mcpServers):
{
"mcpServers": {
"invoicex-ray": {
"command": "node",
"args": ["/path/to/nitrostack/dist/index.js"]
}
}
}π Regulatory Reference Framework
FEMA 2026: Foreign Exchange Management (Export and Import Regulations), 2026 (Section 13 Penalties).
RBI Master Direction on KYC/AML: Master Direction - Know Your Customer (KYC) Direction, 2016 (updated 2026).
FIU-IND Reporting Format: Financial Intelligence Unit - India Suspicious Transaction Report guidelines.
FATF TBML Typologies: Financial Action Task Force Guidance on Trade-Based Money Laundering.
π License
Distributed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityBmaintenanceAn MCP server that provides queryable access to Anti-Money Laundering (AML) red flag knowledge from regulatory documents. It enables compliance officers to ask natural-language questions and receive relevant, sourced red flags from a local vector database.7
- Flicense-qualityDmaintenanceA production-grade MCP server that automates financial compliance audits by combining LLMs with structured analysis, enabling policy validation, risk profiling, and automated reporting.
- Flicense-qualityDmaintenanceA production-grade MCP server that provides financial ML tools including RAG search, anomaly detection, contract summarization, vendor graph analysis, and model drift monitoring using entirely free, open-source components.1

yaml-ai-mcpofficial
FlicenseAqualityAmaintenanceAn MCP server for anti-money laundering (AML) compliance, including customer due diligence, transaction monitoring, and SAR filing, compliant with 6AMLD, UK MLR 2017, and FinCEN.4
Related MCP Connectors
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Identity resolution MCP server for phone/email lookups across 31+ services. Global + India coverage.
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DevNarayanU/MCP-Nitro'
If you have feedback or need assistance with the MCP directory API, please join our Discord server