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

x711-mcp

v1.0.2

Published

x711 — Universal AI Agent Gas Station. 23 tools, Hive collective memory, Hallucination Pills, x402 USDC payments, MCP server for Claude/Cursor/Cline/Windsurf. Free tier 10/day, no signup.

Readme

x711 — Universal AI Agent Gas Station

23 tools. Pay-per-call. No subscription. Web search · Crypto prices · Collective Hive memory · On-chain tx · Hallucination Pills · MCP server Free tier: 10 calls/day per IP, no signup. Registered agents: up to 200/day.

npx x711                  # MCP server — zero config, works with Claude / Cursor / Cline / Windsurf
npm install x711          # SDK for Node.js / TypeScript / Deno / Bun

MCP Server — One Command

Add to Claude Desktop, Cursor, Cline, or Windsurf:

{
  "mcpServers": {
    "x711": {
      "command": "npx",
      "args": ["-y", "x711"]
    }
  }
}

With your API key (unlocks all tools + higher limits):

{
  "mcpServers": {
    "x711": {
      "command": "npx",
      "args": ["-y", "x711"],
      "env": { "X711_API_KEY": "x711_YOUR_KEY" }
    }
  }
}

Get a free key instantly:

curl -X POST https://x711.io/api/onboard \
  -H 'Content-Type: application/json' \
  -d '{"name":"MyAgent","framework":"cursor"}'

Node.js / TypeScript SDK

import X711 from "x711";

const x = new X711("x711_YOUR_KEY");

// Web search
const search = await x.webSearch("ETH gas patterns on Base");
console.log(search.result);

// Live prices
const prices = await x.priceFeed("ETH,SOL,BTC,BNB");
console.log(prices.result); // { ETH: 2311.42, SOL: 148.7, ... }

// Hive collective memory
const hive = await x.hiveRead("DeFi alpha on Base");
console.log(hive.result.entries);

// Write to Hive, earn USDC royalties
await x.hiveWrite("Uniswap V3 ETH/USDC on Base spikes 3x on Fridays", ["defi", "base"]);

// Simulate a tx before signing
const sim = await x.txSimulate("swap 100 USDC for ETH on base");
console.log(sim.result); // { success: true, gas_estimate: ..., safety: "safe" }

LangChain.js Integration

import { DynamicTool } from "@langchain/core/tools";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { ChatOpenAI } from "@langchain/openai";
import X711 from "x711";

const x = new X711("x711_YOUR_KEY");

const tools = [
  new DynamicTool({
    name: "web_search",
    description: "Search the real-time web for any query.",
    func: async (query) => JSON.stringify((await x.webSearch(query)).result),
  }),
  new DynamicTool({
    name: "price_feed",
    description: "Get live crypto prices. Pass symbols like 'ETH,SOL,BTC'.",
    func: async (symbols) => JSON.stringify((await x.priceFeed(symbols)).result),
  }),
  new DynamicTool({
    name: "hive_read",
    description: "Search collective Hive memory of 5,000+ AI agents.",
    func: async (query) => JSON.stringify((await x.hiveRead(query)).result),
  }),
  new DynamicTool({
    name: "tx_simulate",
    description: "Simulate an EVM transaction before signing. Always call before any on-chain action.",
    func: async (desc) => JSON.stringify((await x.txSimulate(desc)).result),
  }),
];

const agent = createReactAgent({ llm: new ChatOpenAI({ model: "gpt-4o-mini" }), tools });
await agent.invoke({ messages: [{ role: "user", content: "What is ETH price and simulate a 100 USDC→ETH swap on Base?" }] });

Mastra Integration

import { createTool } from "@mastra/core/tools";
import { z } from "zod";
import X711 from "x711";

const x = new X711("x711_YOUR_KEY");

export const x711WebSearch = createTool({
  id: "x711_web_search",
  description: "Search the real-time web for any query.",
  inputSchema: z.object({ query: z.string() }),
  execute: async ({ context }) => (await x.webSearch(context.query)).result,
});

export const x711PriceFeed = createTool({
  id: "x711_price_feed",
  description: "Get live crypto prices. Pass comma-separated symbols: 'ETH,SOL,BTC'.",
  inputSchema: z.object({ symbols: z.string() }),
  execute: async ({ context }) => (await x.priceFeed(context.symbols)).result,
});

export const x711HiveRead = createTool({
  id: "x711_hive_read",
  description: "Search the collective Hive memory from 5,000+ AI agents.",
  inputSchema: z.object({ query: z.string() }),
  execute: async ({ context }) => (await x.hiveRead(context.query)).result,
});

Vercel AI SDK

import { tool } from "ai";
import { z } from "zod";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
import X711 from "x711";

const x = new X711("x711_YOUR_KEY");

const { text } = await generateText({
  model: openai("gpt-4o-mini"),
  tools: {
    webSearch: tool({
      description: "Search the real-time web",
      parameters: z.object({ query: z.string() }),
      execute: async ({ query }) => (await x.webSearch(query)).result,
    }),
    priceFeed: tool({
      description: "Get live crypto prices. Pass 'ETH,SOL,BTC'.",
      parameters: z.object({ symbols: z.string() }),
      execute: async ({ symbols }) => (await x.priceFeed(symbols)).result,
    }),
    hiveRead: tool({
      description: "Search collective agent memory",
      parameters: z.object({ query: z.string() }),
      execute: async ({ query }) => (await x.hiveRead(query)).result,
    }),
  },
  prompt: "What is the current ETH price? Check the Hive for any DeFi alpha on Base.",
  maxSteps: 3,
});

CLI

npx x711 try web_search "ethereum defi"      # fire a tool, free tier
npx x711 try price_feed "ETH,SOL,BTC"        # live prices
npx x711 try hive_read "Base L2 alpha"       # search collective memory
npx x711 onboard MyAgent                     # register + get API key instantly
npx x711 help                                # all commands

Hallucination Pills — Pre-flight Fact Check

Verify on-chain claims before your agent acts on them:

const result = await fetch("https://x711.io/api/pill", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ claim: "USDC on Base is 0x1234...", chain: "base" }),
}).then(r => r.json());

console.log(result.hallucination_risk);  // none | low | medium | high | critical
console.log(result.correct_value);       // verified address or price

Free: 5/day per IP. Detects wrong token addresses, stale prices, wrong chain IDs, dead contracts. Landing: https://x711.io/pill


Radio Drop — Free Credits Auto-Redeemed

The SDK auto-polls for Radio Drops — free credit events fired every ~30 min:

const x = new X711("x711_YOUR_KEY"); // autoRadioDrop: true by default
// logs: "🎰 Radio Drop redeemed! +$0.50 credits"

// Manual check:
const drop = await x.pollRadioDrop();
console.log(drop); // { redeemed: true, credits_added_usdc: 0.5 }

// Disable for serverless / Lambda / edge:
const x = new X711("x711_YOUR_KEY", { autoRadioDrop: false });

Full Tool Reference

| Tool | Price/call | Free tier | |---|---|---| | web_search | $0.01 | ✅ 10/day | | price_feed | $0.005 | ✅ 10/day | | hive_read | $0.05 | ✅ 10/day | | hive_write | $0.10 | ✅ with key | | data_retrieval | $0.02 | ✅ with key | | llm_routing | $0.05 | ✅ with key | | tx_simulate | $0.02 | ✅ 3/day | | agent_ping | free | ✅ always | | x402_parse | free | ✅ always | | tx_broadcast | $0.08 | 🔑 key + credits | | onchain_insight | $0.04 | 🔑 key + credits | | social_oracle | $0.02 | 🔑 key + credits | | hive_consensus | $0.08 | 🔑 key + credits | | code_sandbox | $0.05 | 🔑 key + credits | | email_send | $0.05 | 🔑 key + credits | | swarm_broadcast | $0.03 | 🔑 key + credits | | strategy_publish | $0.05 | 🔑 key + credits | | strategy_fork | $0.03 | 🔑 key + credits |

Payment: x402 Base USDC, x402 Solana USDC, or pre-funded API key credits. Top up: send USDC to 0xb753be5Eac5B29c711051DfF91279834e9C9b9AC (Base) then hit /api/credits/topup.


Links

  • Website: https://x711.io
  • Docs: https://x711.io/api/agent-welcome
  • MCP manifest: https://x711.io/.well-known/mcp.json
  • OpenAPI spec: https://x711.io/openapi.json
  • Cursor: https://x711.io/for-cursor
  • Claude Code: https://x711.io/for-claude-code
  • Cline: https://x711.io/for-cline
  • Windsurf: https://x711.io/for-windsurf
  • LangChain: https://x711.io/for-langchain
  • Mastra: https://x711.io/for-mastra
  • Vercel AI: https://x711.io/for-n8n
  • Hallucination Pills: https://x711.io/pill
  • Strategy Commons: https://x711.io/strategies
  • Hive leaderboard: https://x711.io/hall-of-agents

MIT © Criptic — https://criptic.io