npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

universalis-mcp-server

v0.2.1

Published

MCP server for Universalis, Saddlebag Exchange, and XIVAPI

Readme

universalis-mcp-server

MCP server for FFXIV market data via Universalis + Saddlebag Exchange, plus XIVAPI item lookup.

Capabilities

This MCP server exposes read-only tools for Universalis market data, Saddlebag Exchange analytics, and XIVAPI item lookup. All tools support response_format as markdown or json.

Market board data (Universalis)

  • universalis_get_aggregated_prices: Aggregated pricing stats for up to 100 item IDs on a world, data center, or region (cached values only).
  • universalis_get_current_listings: Current listings plus recent sales history; supports filters like hq, listings, entries, and field selection.
  • universalis_get_sales_history: Sales history with optional time windows and price filters.

Item lookup (XIVAPI)

  • universalis_resolve_items_by_name: Search items by name with partial or exact matching.
  • universalis_resolve_items_by_names: Resolve multiple item names in one search query.
  • universalis_get_item_by_id: Fetch a single item row by ID.
  • universalis_get_items_by_ids: Fetch multiple item rows by ID in one request.

Workflows

  • universalis_rank_items_by_profitability: Resolve names, fetch aggregated data, and rank by demand and profit.

Market analytics (Saddlebag Exchange)

  • saddlebag_get_listing_metrics: Listing competition metrics and current listings.
  • saddlebag_get_history_metrics: Aggregated history metrics and price distributions.
  • saddlebag_get_raw_stats: Daily snapshot stats (median, average, sales volume).
  • saddlebag_get_scrip_exchange: Gil-per-scrip rankings.
  • saddlebag_get_shopping_list: Crafting shopping list across servers (may return exception payloads).
  • saddlebag_get_export_prices: Cross-world price comparison for export trading.
  • saddlebag_get_marketshare: Marketshare leaderboard snapshot for a server.
  • saddlebag_get_reselling_scan: Reselling opportunities (region/DC/vendor filters).
  • saddlebag_get_weekly_price_group_delta: Weekly deltas for custom item groups.
  • saddlebag_get_price_check: Price alert checks (user-supplied auctions).
  • saddlebag_get_quantity_check: Quantity alert checks (user-supplied auctions).
  • saddlebag_get_sale_alert: Sale alerts for retainer listings.
  • saddlebag_get_craftsim: Crafting profitability scan (use max_results to limit payloads).
  • saddlebag_get_blog_description: Item description text lookup.

Best-deals is excluded (premium gated + inconsistent API validation).

Guides (Wiki snapshots)

  • wiki_list_pages: List curated wiki pages for Saddlebag and Universalis guides.
  • wiki_get_page: Fetch a wiki page by slug for extra context.

Reference data (Universalis)

  • universalis_list_worlds: List worlds with pagination.
  • universalis_list_data_centers: List data centers with pagination.
  • universalis_list_marketable_items: List marketable item IDs with pagination.
  • universalis_get_tax_rates: Current tax rates for a world.
  • universalis_get_list: Fetch a Universalis list by ID.
  • universalis_get_content: Fetch content metadata by ID (best-effort endpoint).

Stats and activity (Universalis)

  • universalis_get_most_recent_updates: Most recently updated items for a world or data center.
  • universalis_get_least_recent_updates: Least recently updated items for a world or data center.
  • universalis_get_recent_updates: Legacy list of recent updates (no world/DC scoping).
  • universalis_get_upload_counts_by_source: Upload counts by client app.
  • universalis_get_upload_counts_by_world: Upload counts and proportions by world.
  • universalis_get_upload_history: Daily upload totals for the last 30 days.

Use with Codex and Claude Code

Install from npm via MCP:

# Codex
codex mcp add universalis-mcp-server -- npx universalis-mcp-server@latest

# Claude Code
claude mcp add universalis-mcp-server npx universalis-mcp-server@latest

To pass environment variables (optional), add them before the command:

# Codex
codex mcp add universalis-mcp-server -- env UNIVERSALIS_TIMEOUT_MS=30000 XIVAPI_TIMEOUT_MS=30000 npx universalis-mcp-server@latest

# Claude Code
claude mcp add universalis-mcp-server env UNIVERSALIS_TIMEOUT_MS=30000 XIVAPI_TIMEOUT_MS=30000 npx universalis-mcp-server@latest

Setup

pnpm install
pnpm build

To refresh curated wiki snapshots:

pnpm update-wiki-docs

Run (stdio)

node dist/index.js

Local Development with Codex and Claude Code

Build the server and point MCP to the local dist entry:

pnpm build

# Codex
codex mcp add universalis-mcp-server -- node ./dist/index.js

# Claude Code
claude mcp add universalis-mcp-server node ./dist/index.js

If you change code, re-run pnpm build and restart the MCP connection.

Environment Variables

  • UNIVERSALIS_BASE_URL: Override Universalis base URL (default: https://universalis.app/api/v2).
  • XIVAPI_BASE_URL: Override XIVAPI base URL (default: https://v2.xivapi.com/api).
  • SADDLEBAG_BASE_URL: Override Saddlebag base URL (default: https://docs.saddlebagexchange.com/api).
  • UNIVERSALIS_MCP_USER_AGENT: Custom User-Agent header.
  • UNIVERSALIS_TIMEOUT_MS: Request timeout for Universalis (default: 30000).
  • XIVAPI_TIMEOUT_MS: Request timeout for XIVAPI (default: 30000).
  • SADDLEBAG_TIMEOUT_MS: Request timeout for Saddlebag (default: 30000).
  • WIKI_FETCH_MODE: local (default) for snapshot files or live to fetch from GitHub.
  • WIKI_REFRESH_TTL_MS: Cache TTL for live wiki fetches (default: 3600000).
  • XIVAPI_LANGUAGE: Default XIVAPI language (default: en).
  • XIVAPI_VERSION: Default XIVAPI version (default: latest).

Notes

  • Rate limits are enforced client-side for Universalis and XIVAPI.
  • Tools support response_format as markdown or json.
  • Some Saddlebag endpoints proxy Universalis data; avoid excessive polling.
  • Wiki pages are curated snapshots stored in docs/wiki.
  • Set WIKI_FETCH_MODE=live to refresh wiki pages at runtime using the allowlisted index.