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

@one-source/docs-mcp

v5.0.0

Published

MCP server for OneSource REST API documentation: search docs, list endpoints, look up parameters and payment info, find endpoints by use case

Downloads

477

Readme

@one-source/docs-mcp

npm version License: MIT Node >= 18

Give your AI assistant full access to the OneSource REST API documentation: search the docs, list endpoints, look up parameters and payment info, and find endpoints by use case.

This is the docs-only server: the assistant can read about the OneSource REST API, with no auth, no payment, and no wallet. @one-source/mcp carries these same eight tools alongside the ones that call the API for real EVM chain reads, so reach for this package when you want the documentation on its own.

Quick Start

Remote (zero setup)

Point any MCP client at the hosted endpoint, no install required:

https://docs.onesource.io/api/mcp

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "onesource-docs": {
      "command": "npx",
      "args": ["-y", "@one-source/docs-mcp"]
    }
  }
}

Claude Code

claude mcp add onesource-docs -- npx -y @one-source/docs-mcp

Any MCP Client (stdio)

npx -y @one-source/docs-mcp

HTTP Server (self-hosted)

npx -y @one-source/docs-mcp --http
npx -y @one-source/docs-mcp --http --port=8080

Then connect your MCP client to http://localhost:3001/mcp.

Tools

All eight tools are prefixed 1s_ so they sort together in your client. No API key required: the bundled data is read-only.

| Tool | Purpose | When to use | |------|---------|-------------| | 1s_search_docs | Keyword search across all OneSource docs (intro, getting-started, guides) | "Find sections about rate limits", "Where's the response envelope documented?" | | 1s_get_api_overview | Operation count, tags, networks, payment protocols, sample endpoints | First call when exploring the API surface | | 1s_list_endpoints | List endpoints with method, path, price, summary (optional tag filter) | "Show me all NFT endpoints", "What's available under the erc20 tag?" | | 1s_get_endpoint_reference | Full reference for one endpoint: parameters, request body, example response, payment, use cases, curl | "How do I call /api/chain/nft-metadata?" | | 1s_search_use_cases | Find endpoints by natural-language description | "I want to check NFT ownership", "Decode a transaction receipt" | | 1s_list_networks | Networks the API routes, read from the spec | Verifying multi-network support | | 1s_get_payment_info | x402 / MPP protocols, prices, pay-to addresses (global or per endpoint) | Understanding the payment model before integrating | | 1s_get_authentication_guide | Bearer / x402 / MPP auth: code examples and when to use which | First-time setup |

Examples

// "What's the price range for paid endpoints?"
{ "tool": "1s_get_payment_info" }

// "Show me the NFT-related endpoints"
{ "tool": "1s_list_endpoints", "args": { "tag": "nft" } }

// "How does live-balance work?"
{ "tool": "1s_get_endpoint_reference", "args": { "endpoint": "chainLiveBalance" } }

// "I want to check if a wallet has approved a DEX"
{ "tool": "1s_search_use_cases", "args": { "query": "ERC20 approval audit" } }

Programmatic use

The package also ships as a library, so you can mount the same server inside your own process (a serverless function, an existing HTTP app, a test harness):

import { createMcpServer, loadData, VERSION } from '@one-source/docs-mcp';

// Load the bundled data once, then create a server per request (stateless HTTP)
const data = loadData();
const { server, analytics } = createMcpServer({ data, transport: 'http' });

| Import | Exposes | |---|---| | @one-source/docs-mcp | createMcpServer, loadData, VERSION, StreamableHTTPServerTransport, and the CreateServerOptions / CreateServerResult / LoadedData types | | @one-source/docs-mcp/analytics | createAnalytics and the Analytics / AnalyticsEvent / ToolCallEvent / ServiceEvent types | | @one-source/docs-mcp/types | ContentSection, SearchResult, ApiData, ApiParameter, and the rest of the shared data shapes | | @one-source/docs-mcp/content/loader | loadContent | | @one-source/docs-mcp/content/indexer | SearchIndex | | @one-source/docs-mcp/content/api-loader | loadApiData | | @one-source/docs-mcp/tools/<tool> | Per-tool <name>Schema (Zod) and handle<Name> for the eight tools, if you want to register them on a server of your own |

createMcpServer({ data }) accepts either a directory path or a pre-loaded LoadedData; omit it and the bundled data/ directory is used.

What ships in the package

Two data artifacts are bundled, so there are no network calls at runtime:

  • data/api-data.json: a flattened view of the OneSource OpenAPI 3.1 spec (operations, parameters, prices, payment protocols, networks).
  • data/docs/: the Markdown sources of https://docs.onesource.io, excluding the generated endpoint reference (that information is served by the tools above).

Both are committed, and publishing is gated on them being current: the release fails if data/docs/ has drifted from the documentation sources, or if data/api-data.json no longer matches the pinned OpenAPI snapshot it was generated from. So a published version carries the corpus that its own commit describes.

Links

License

MIT. See LICENSE.