Back to Browse

Underindex Api MCP Server

Developer ToolsLow Risk8.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

Verified records on 60 niche fashion subcultures for AI agents, $0.01 per lookup over x402

About

Verified records on 60 niche fashion subcultures for AI agents, $0.01 per lookup over x402

Security Report

8.8
Low Risk8.8Low Risk

Valid MCP server (2 strong, 3 medium validity signals). 3 known CVEs in dependencies โš ๏ธ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

12 files analyzed ยท 4 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

file_system

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Private key of a dedicated EVM wallet holding USDC on Base. Optional: without it only the free tools work.Required

Environment variable: UNDERINDEX_PRIVATE_KEY

Hard spending cap per lookup, default $0.05Optional

Environment variable: UNDERINDEX_MAX_PER_CALL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-ascaniounderindex-underindex": {
      "env": {
        "UNDERINDEX_PRIVATE_KEY": "your-underindex-private-key-here",
        "UNDERINDEX_MAX_PER_CALL": "your-underindex-max-per-call-here"
      },
      "args": [
        "-y",
        "underindex-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

UnderIndex API ๐Ÿ”ฎ

Listed on mcpservers.org

The x402-monetized fashion data oracle for AI agents

UnderIndex is a high-density, machine-to-machine (M2M) dataset of verified grounding data on 60 niche fashion subcultures (from Ura-Hara and Goth Ninja to Britpop and Opium).

It's built for AI agents, autonomous personal shoppers and RAG pipelines. Access is paid per call with the open x402 protocol (USDC on Base), so any standard x402 client can pay without needing an API key or an account.

๐Ÿง  Why build with UnderIndex?

Even strong LLMs blur neighbouring aesthetics when asked about niche fashion. They mix Goth Ninja with Techwear, drift on dates, and pad outfits with generic high-street substitutes, and the answer changes from one run to the next. UnderIndex is a deterministic source of truth:

  • High signal-to-noise: Exact key brands, iconic items and historical context.
  • Anti-hallucination guardrails: Explicit WARNING notes that prevent common era and routing errors.
  • Actionable marketplaces: Specific destinations (e.g. "Yahoo Auctions Japan via proxy", "Grailed") instead of generic "Online" tags.
  • Versioned: Every response carries a dataset_version, so you can cache and detect changes.

๐Ÿ“Š Before / after

Same model, same question, asked twice: once from memory, once with the UnderIndex record for that subculture.

"Build me a Goth Ninja outfit. Name specific brands, the key pieces, where to buy them, a realistic budget, and say which years this aesthetic belongs to."

From memoryWith UnderIndex
Years (record: 2009 - 2014)2011โ€“2015, plus a "revival since 2021"2009โ€“2014
Key brands in the record2 of 44 of 4
Iconic items in the record2 of 44 of 4
Where to buyGrailed, plus SSENSE, Farfetch, Vinted, ASOS, ZalandoGrailed, Yahoo Auctions Japan
Budget (record: $600 - $2500)โ‚ฌ300 to โ‚ฌ8,000+$600 to $2,500
Techwear mixed inYes: an Acronym shell and Nike Tech FleeceNo: "skip the tactical straps, nylon shells and utility hardware"

The answer from memory is plausible, which is the problem: nothing in it signals that Acronym and Tech Fleece belong to a different aesthetic. The record's WARNING note ("Distinguish from modern Techwear") is what keeps the grounded answer inside the 2009-2014 look.

Method: Claude Opus 5.5, two fresh chats with no memory and no web search, October 2026. In the second chat the record was pasted into the prompt. Full transcripts for this run and for an Acubi run are in demo/, together with a Claude tool definition that pays for lookups over x402 (demo/underindex-tool.mjs).

๐Ÿ“ Evaluation: 15 subcultures

The same outfit question for 15 subcultures, 30 fresh chats: each one once from memory and once with the record.

From memoryWith the record
Recommends a brand the dataset files under a neighbouring subculture8 of 15 answers1 of 15
Years match the record (within 2 years)13 of 1515 of 15
Record's key brands named71%98%

From memory the model put Red Wing into Amekaji, Y-3 into Goth Ninja and Massimo Dutti into Quiet Luxury. It knows the well-documented scenes (Indie Sleaze, Mall Goth, Terrace Casuals) about as well as the records do; the gap is on the niche ones (Acubi, Frutiger Aero, Amekaji). The run also showed weak points in 9 records, which were checked and corrected afterwards. Method, limits and all 30 answers: eval/.

๐Ÿช™ Pricing

  • Cost: $0.01 USDC per subculture record
  • Protocol: x402 v2, exact scheme
  • Network: Base (eip155:8453). To try the flow for free, self-host the server: it starts on Base Sepolia testnet by default.
  • You are only charged when the server returns data. An unknown name returns 404 and is never settled.

๐Ÿ”Œ Endpoints

1. Catalog (free)

GET https://underindex-api.onrender.com/api/catalog

Returns { dataset_version, price, network, subcultures: [{ slug, name, years }] }. Use the slug in the detail path.

GET /api/subcultures still returns the plain array of display names for older clients.

2. Free sample

GET https://underindex-api.onrender.com/api/sample

Returns one complete record (Goth Ninja) for free, in exactly the shape of the paid response, so you can see what you are buying and test your parser before setting up a wallet.

3. Subculture record (paid, x402)

GET https://underindex-api.onrender.com/api/subculture?name={slug}

Example: /api/subculture?name=goth-ninja, /api/subculture?name=ura-hara-harajuku-90s

The same record is also served at /api/subculture/{slug}. On that form an unknown slug gets its 404 before any payment is requested; on the query form the 404 comes after the payment is verified and nothing is settled. Use whichever your client handles better.

4. OpenAPI document (free)

GET https://underindex-api.onrender.com/openapi.json

Describes the paid route with x-payment-info and lists every valid slug as the enum of the name parameter, so an agent can build a call without fetching the catalog first. Registries such as x402scan read this file.

Payment flow (standard x402 v2, handled automatically by any x402 client):

  1. The client sends a GET request.
  2. The server replies 402 Payment Required with a base64 PAYMENT-REQUIRED header (price, network, asset, payTo).
  3. The client signs an EIP-3009 USDC authorization for exactly those terms and retries with a PAYMENT-SIGNATURE header.
  4. The server verifies it with the facilitator, returns the JSON, and settles on-chain. The receipt arrives in the PAYMENT-RESPONSE header.

๐Ÿค– Use it from an agent

TypeScript (@x402/fetch)

import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls({ maxAmountPerPayment: "$0.05" });
client.register("eip155:*", new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY)));

const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const res = await fetchWithPayment("https://underindex-api.onrender.com/api/subculture?name=opium");
console.log(await res.json());

Claude Desktop, Claude Code and other MCP clients: mcp/ packages the API as an MCP server with three tools: list_subcultures and get_sample_record are free, get_subculture pays $0.01 per record from a wallet key you provide, with a hard per-call cap.

Coinbase AgentKit: the built-in make_http_request_with_x402 action works against this endpoint as is.

System prompt snippet

"For any question about a niche fashion subculture, ground your answer in UnderIndex. First GET https://underindex-api.onrender.com/api/catalog (free) to find the slug. Then GET /api/subculture?name={slug} with your x402-enabled HTTP tool. Treat the returned KeyBrands, Years and Notes as authoritative and follow any WARNING in Notes."


๐Ÿ›  Self-hosting

npm install
cp .env.example .env   # fill in values
npm start
npm test               # dataset unit tests (no network)
VariableRequiredNotes
AIRTABLE_API_KEYyesAirtable personal access token (read-only scope is enough)
AIRTABLE_BASE_IDnoDefaults to the UnderIndex base
X402_NETWORKnobase-sepolia (default, free x402.org facilitator) or base (mainnet)
CDP_API_KEY_ID, CDP_API_KEY_SECRETfor baseFrom portal.cdp.coinbase.com; used by the CDP facilitator
PAY_TOnoReceiving address
PRICE_USDnoDefault $0.01
RAPIDAPI_SECRETnoLets RapidAPI marketplace traffic skip x402
DATASET_REFRESH_MSnoAirtable snapshot refresh interval, default 10 minutes

Data is loaded from Airtable at startup and refreshed in the background. Requests are served from memory, so traffic never reaches Airtable's rate limits.

Stack

  • Data: Airtable (snapshotted in memory)
  • Server: Node.js 20+, Express, @x402/express (hosted on Render)
  • Payments: x402 v2, USDC on Base, CDP facilitator

Reviews

No reviews yet

Be the first to review this server!