Egeria ToS Red Flag Analyzer
by Egeria
About
AI-powered Terms of Service analyzer detecting consumer protection red flags including data resale loopholes, dynamic pricing discrimination, third-party tracker SDKs, and indefinite data retention clauses. Covers major gig economy apps (Lyft, Uber Eats, DoorDash, Instacart).
Access Data
For AI Agents
MCP ServerInstall the x402 MCP server to let your AI agent access this data with automatic USDC payments on Base.
Required: You need a SerenDB database to store query results.
Get your connection string from the SerenDB Console under your database settings.
Add to claude_desktop_config.json:
{
"mcpServers": {
"x402": {
"command": "npx",
"args": ["@serendb/x402-mcp-server"],
"env": {
"X402_GATEWAY_URL": "https://x402.serendb.com",
"WALLET_PRIVATE_KEY": "0x...",
"BASE_RPC_URL": "https://mainnet.base.org",
"SERENDB_CONNECTION_STRING": "postgresql://..."
}
}
}
}Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.
claude mcp add x402 \ -e X402_GATEWAY_URL=https://x402.serendb.com \ -e WALLET_PRIVATE_KEY=0x... \ -e BASE_RPC_URL=https://mainnet.base.org \ -e "SERENDB_CONNECTION_STRING=postgresql://..." \ -- npx -y @serendb/x402-mcp-server
claude mcp add x402 ` -e X402_GATEWAY_URL=https://x402.serendb.com ` -e WALLET_PRIVATE_KEY=0x... ` -e BASE_RPC_URL=https://mainnet.base.org ` -e "SERENDB_CONNECTION_STRING=postgresql://..." ` '--' npx -y @serendb/x402-mcp-server
Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.
gemini mcp add x402 \ -e X402_GATEWAY_URL=https://x402.serendb.com \ -e WALLET_PRIVATE_KEY=0x... \ -e BASE_RPC_URL=https://mainnet.base.org \ -e "SERENDB_CONNECTION_STRING=postgresql://..." \ -- npx -y @serendb/x402-mcp-server
Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.
codex mcp add x402 \ --env X402_GATEWAY_URL=https://x402.serendb.com \ --env WALLET_PRIVATE_KEY=0x... \ --env BASE_RPC_URL=https://mainnet.base.org \ --env "SERENDB_CONNECTION_STRING=postgresql://..." \ -- npx -y @serendb/x402-mcp-server
Important: Cursor has a 60s timeout. Pre-install globally first: npm install -g @serendb/x402-mcp-server
First, install globally to avoid timeout issues:
npm install -g @serendb/x402-mcp-server
Then add to ~/.cursor/mcp.json:
{
"mcpServers": {
"x402": {
"command": "x402-mcp-server",
"args": [],
"env": {
"X402_GATEWAY_URL": "https://x402.serendb.com",
"WALLET_PRIVATE_KEY": "0x...",
"BASE_RPC_URL": "https://mainnet.base.org",
"SERENDB_CONNECTION_STRING": "postgresql://..."
}
}
}
}Also works with Windsurf, Zed, and other MCP-compatible clients. See the full setup guide for details.
For Developers
Direct HTTP APIAccess data directly via HTTP using the x402 payment protocol.
- Send your query request to the gateway
- Receive
HTTP 402with payment requirements (amount, wallet, EIP-712 data) - Sign the payment authorization with your wallet
- Retry request with
X-PAYMENTheader containing the signature - Receive your data - payment settles automatically via USDC on Base
curl -X POST https://x402.serendb.com/api/query \
-H "Content-Type: application/json" \
-d '{
"sql": "SELECT * FROM your_table LIMIT 10",
"publisherId": "a5a9341c-7eb5-486a-b160-1a31ad3f91f6",
"agentWallet": "0xYourWalletAddress"
}'This returns 402 Payment Required with the payment details you need to sign.
After signing the EIP-712 authorization, add the base64-encoded signature:
curl -X POST https://x402.serendb.com/api/query \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-encoded-signature>" \
-d '{ ... }'Example Prompts
Copy these prompts to use with your AI assistant. Make sure you have the x402 MCP server configured.
Using the x402 MCP server, query the Egeria database to find all of the apps in its dataset
Using the x402 MCP server, query the Egeria database to find the red flags and evidence quotes for these apps I use daily: Lyft, Uber, Instacart, Affirm, and Stubhub
Using the x402 MCP server, query the Egeria database to find the top 50 highest-confidence red flags across all apps, including the app name and exact ToS evidence quotes
Using the x402 MCP server, compare the privacy red flags between rideshare apps (Lyft, Uber) and food delivery apps (DoorDash, Instacart, Uber Eats) - which category has more concerning data practices?
Using the x402 MCP server, query Egeria for all red flags related to data resale and third-party sharing across gig economy apps, ranked by confidence level
Pricing
Pay per 1K rows via x402 protocol