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

@uspark/mcp-server

v0.2.7

Published

MCP server for uSpark project synchronization

Readme

@uspark/mcp-server

Model Context Protocol (MCP) server for automatically syncing uSpark projects to your local .uspark directory.

Features

  • Automatic Sync: Periodically pulls your uSpark project to keep documentation up-to-date
  • MCP Tools: Provides tools for Claude and other AI assistants to interact with your projects
  • Environment-Based Configuration: All settings via environment variables, no config files needed

Installation

npx @uspark/mcp-server

Configuration

For Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "uspark": {
      "command": "npx",
      "args": ["-y", "@uspark/mcp-server"],
      "env": {
        "USPARK_TOKEN": "your-authentication-token",
        "USPARK_PROJECT_ID": "your-project-id",
        "USPARK_API_URL": "https://www.uspark.ai",
        "USPARK_SYNC_INTERVAL": "3600000",
        "USPARK_OUTPUT_DIR": ".uspark"
      }
    }
  }
}

Environment Variables

| Variable | Required | Default | Description | | ---------------------- | -------- | ----------------------- | -------------------------------- | | USPARK_TOKEN | ✅ Yes | - | Your uSpark authentication token | | USPARK_PROJECT_ID | ✅ Yes | - | The project ID to sync | | USPARK_API_URL | No | https://www.uspark.ai | API endpoint URL | | USPARK_SYNC_INTERVAL | No | 3600000 (1 hour) | Sync interval in milliseconds | | USPARK_OUTPUT_DIR | No | .uspark | Local directory for synced files |

Getting Your Token

  1. Run uspark auth login with the CLI
  2. Your token will be stored in ~/.uspark/auth.json
  3. Copy the token to your MCP configuration

Available Tools

The MCP server provides these tools for AI assistants:

uspark_pull

Manually trigger a sync to pull the latest files from your project.

Agent: Use the uspark_pull tool to sync the project

uspark_status

Check the current sync configuration and status.

Agent: Use the uspark_status tool to see configuration

uspark_list_files

List all files in the remote project.

Agent: Use the uspark_list_files tool to see available files

How It Works

  1. Startup: The MCP server loads configuration and performs an initial sync
  2. Background Sync: Automatically syncs at the configured interval
  3. MCP Tools: Responds to tool calls from Claude or other MCP clients
  4. Local Files: All synced files are stored in the configured output directory

Development

Building

pnpm build

Testing

pnpm test

Architecture

  • Configuration: Environment-based, no files
  • Sync: Uses @uspark/core ProjectSync for file operations
  • Transport: stdio for MCP communication
  • Storage: Local filesystem (.uspark directory)

Troubleshooting

"Missing required environment variables"

Ensure USPARK_TOKEN and USPARK_PROJECT_ID are set in your MCP client configuration.

"Failed to pull project"

  • Verify your token is valid
  • Check that the project ID exists
  • Ensure you have access to the project

Files not syncing

  • Check the logs (stderr) for sync errors
  • Verify the sync interval is appropriate
  • Ensure the output directory is writable

Related Packages

License

See the main LICENSE file.