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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@surfai/docs-mcp

v1.0.6

Published

Model Context Protocol (MCP) server for Surfboard Payments documentation

Readme

Surfboard Payments Documentation MCP

A Model Context Protocol (MCP) server that provides AI assistants with direct access to Surfboard Payments' documentation.

Overview

This MCP server acts as a bridge between AI assistants and Surfboard Payments' documentation, enabling AI systems to access current, accurate documentation on-demand. This ensures developers receive precise guidance when integrating with Surfboard Payments APIs.

Features

  • Documentation Fetching: Retrieve raw documentation files (Markdown, JSON) from Surfboard's servers
  • Documentation Index: Access the central documentation index (llms.txt)
  • Basic Search: Find relevant documentation paths based on simple keyword queries
  • Documentation Caching: Store documentation for 3-4 days, reducing network overhead and improving response times
  • Multi-runtime Support: Run using Node.js, Bun

Installation

Local Installation

npm install @surfai/docs-mcp

Global Installation

npm install -g @surfai/docs-mcp

Usage

When Installed Locally

Running with Node.js

npm run start:node

Running with Bun

npm run start:bun

When Installed Globally

# Run directly from anywhere
node-surfboard-documentation-ai

OR

# Run from anywhere
bun-surfboard-documentation-ai

Available Tools

The MCP server provides the following tools:

1. surfboard_fetch_documentation_index

Fetches the Surfboard documentation index.

Parameters:

  • bypass_cache (optional): Whether to bypass the cache (default: false)

Example:

{
  "name": "surfboard_fetch_documentation_index",
  "arguments": {
    "bypass_cache": false
  }
}

2. surfboard_fetch_documentation

Fetches a specific Surfboard documentation file.

Parameters:

  • path (required): Path to the documentation file
  • bypass_cache (optional): Whether to bypass the cache (default: false)

Example:

{
  "name": "surfboard_fetch_documentation",
  "arguments": {
    "path": "/api/orders.json",
    "bypass_cache": false
  }
}

3. surfboard_search_documentation

Searches Surfboard documentation.

Parameters:

  • query (required): Search query
  • max_results (optional): Maximum number of results to return (default: 10)
  • include_snippets (optional): Whether to include snippets in the results (default: true)
  • bypass_cache (optional): Whether to bypass the cache (default: false)

Example:

{
  "name": "surfboard_search_documentation",
  "arguments": {
    "query": "process payment",
    "max_results": 5,
    "include_snippets": true,
    "bypass_cache": false
  }
}

4. surfboard_clear_cache

Clears the documentation cache.

Parameters:

  • path (optional): Path to clear from cache (if not provided, clears the entire cache)

Example:

{
  "name": "surfboard_clear_cache",
  "arguments": {
    "path": "/api/orders.json"
  }
}

MCP Integration

This MCP server is designed to be used with AI assistants that support the Model Context Protocol. It provides tools for accessing Surfboard Payments documentation directly from the AI assistant.

Configuration

When Installed Locally

When registering this MCP server with your AI assistant platform and using a local installation:

{
  "command": "node",
  "args": ["node_modules/@surfai/docs-mcp/node.index.js"],
  "env": {}
}

Or for Bun:

{
  "command": "bun",
  "args": ["node_modules/@surfai/docs-mcp/bun.index.js"],
  "env": {}
}

When Installed Globally

When registering this MCP server with your AI assistant platform and using a global installation:

{
  "command": "node-surfboard-documentation-ai",
  "args": [],
  "env": {},
  "autoApprove": []
}

Or for Bun:

{
  "command": "bun-surfboard-documentation-ai",
  "args": [],
  "env": {},
  "autoApprove": []
}

If you're having troubles using the above command, you can try running the following command instead:

~ npm root -g
/Users/{{USER}}/.nvm/versions/node/{{VERSION}}/lib/node_modules # The path to the global node_modules directory

Then, you can use the mcp server in the following way:

{
  "command": "node",
  "args": [
    "/Users/{{USER}}/.nvm/versions/node/{{VERSION}}/lib/node_modules/@surfai/docs-mcp/node.index.js"
  ],
  "env": {},
  "disabled": false,
  "autoApprove": []
}

License

MIT