Lingua Detective x402 MCP
Integrates with Solana for x402 micropayments in USDC, enabling paid API calls through a funded Solana wallet, local transaction signing, sponsored gas via a facilitator, mainnet/devnet support, and optional Solana RPC for blockhash fallback.
Click on "Deploy 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., "@Lingua Detective x402 MCPdetect the language of: "Bonjour tout le monde, comment ça va ?""
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.
Lingua Detective x402 MCP
MCP server exposing Lingua Detective's paid APIs with per-call x402 payments (USDC on Solana, gas sponsored): no account, no API key, no subscription. An AI agent calls the tool, pays a few cents, and receives the result.
Tools (4)
Tool | Endpoint | Price |
|
| $0.002 |
|
| $0.004 |
|
| $0.006 |
|
| flexible (min $0.006) |
Related MCP server: farebox-mcp
Payment modes
The server reads its configuration from the environment. Two modes (in priority order):
Prepaid credit —
X402_CREDIT_TOKEN: an opaque token obtained via a top-up (credit_topuporbundle_check). Each call debits the credit without a Solana transaction. Ideal for high volume.Payer wallet —
X402_PAYER_KEY_B64: a Solana private key (64 bytes, base64) of a wallet funded in USDC (no SOL required: gas is sponsored by the facilitator). Each call settles its x402 transaction automatically.
With neither, the tools return the decoded 402 challenge (amount, payTo address,
network) so the agent understands what is being requested.
Environment variables
Variable | Role | Default |
| Paid API base URL |
|
|
|
|
| Payer wallet (64-byte secret key, base64) | — |
| Prepaid credit token | — |
| Locks the recipient (anti-misdirection) | — |
| x402 facilitator (Dexter) |
|
| Solana RPC (blockhash fallback) | public mainnet-beta |
Installation
Claude Desktop
{
"mcpServers": {
"linguadetective": {
"command": "npx",
"args": ["-y", "lingua-x402-mcp"],
"env": {
"X402_PAYER_KEY_B64": "<your base64 private key>",
"X402_TRUSTED_PAYTO": "H3NuGHu9mpGgscj2DWtrs699PWdovPUicy2N9dDaYLTk"
}
}
}
}Cursor / other stdio clients
Add the same command: npx, args: ["-y", "lingua-x402-mcp"] entry with your env.
Local
git clone https://github.com/maximethemens-code/lingua-x402-mcp && cd lingua-x402-mcp && npm install
X402_PAYER_KEY_B64=... npm start # npm start = node src/index.jsExample call
detect_langue { text: "Bonjour tout le monde, ceci est une phrase en français." }
→ { "langues": [ { "code": "fra", "nom": "français", ... } ], ... } ($0.002 USDC debited)Security
X402_PAYER_KEY_B64is never sent to the server: it is only used to sign the transaction locally.X402_TRUSTED_PAYTOis strongly recommended: it prevents the wallet from paying an unexpected recipient (e.g. ifX402_BASE_URLpoints to a malicious server).The payment wallet must be distinct from the receiving wallet (
payTo).
Known limitations
Detection is offline (the
franclibrary, 186 languages, ISO 639-3 codes): no network call, but a text that is too short (< 10 characters) returns an error.Real on-chain settlement (verify/settle via Dexter) is only exercised with a wallet actually funded in USDC.
This server cannot be deployed
Maintenance
Related MCP Connectors
x402 pay-per-call Solana data + crypto market + JWT/unit utils for AI agents.
17-model LLM gateway + 350+ data/KYB/sanctions tools. Pay-per-call USDC via x402, no API key.
Solana address risk grades and token scans for AI agents. Pay-per-call via x402 (USDC on Base).
x402 paid API tools for AI agents on Solana: crypto safety, market data, KYB/AML verification.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to make micropayments using USDC on Solana via the x402 protocol, supporting payment requests, on-chain verification, and revenue tracking.MIT
- AlicenseNot gradedqualityAmaintenanceCrypto-native LLM gateway with OpenAI-compatible API and per-token USDC payments on Solana via the x402 protocol.9,148 npmMIT

@bridgenode/mcpofficial
AlicenseAqualityCmaintenanceEnables AI agents to make pay-as-you-go AI inference requests through x402 with automatic Solana USDC payments, no API keys or registration, while enforcing configurable spending limits.390 npm1MIT No Attribution- AlicenseNot gradedqualityCmaintenanceEnables AI agents to identify what language text is written in, returning top matches, confidence scores, script detection, and character statistics via a pay-per-call x402 API without requiring an API key.MIT