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

@berrydev-ai/mcp-servers

v1.0.0

Published

Collection of MCP servers for personal use

Readme

MCP Servers

A collection of Model Context Protocol (MCP) servers for personal use, built with TypeScript and the FastMCP framework.

Overview

This project provides MCP servers that can be used with AI assistants and other applications that support the Model Context Protocol. Currently includes tools for token counting and text analysis.

Features

Tiktoken Tool

  • Token Counting: Determine the number of tokens in text using the js-tiktoken library
  • Uses the o200k_base encoding (GPT-4 tokenizer)
  • Useful for managing token limits in AI applications

Claude Desktop Integration

This package is designed to work with Claude Desktop's MCP Server configuration. You can use it directly with npx without needing to install it locally.

Quick Setup

Add the following to your Claude Desktop configuration file:

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

{
  "mcpServers": {
    "berrydev-mcp-servers": {
      "command": "npx",
      "args": [
        "-y",
        "@berrydev-ai/mcp-servers"
      ],
      "env": {}
    }
  }
}

After adding this configuration, restart Claude Desktop. The tiktoken tool will be available for token counting operations.

Installation

npm install

Publishing to NPM

This package is configured to be published to NPM for use with npx. The package includes:

  • Executable binary configuration
  • Automatic builds before publishing
  • Proper file inclusion for distribution
npm publish

Development

Build the project

npm run build

Development mode (watch)

npm run dev

Run the server

npm start

Inspect with MCP Inspector

npm run inspector

Inspect with FastMCP CLI

npm run mcp-cli

Testing

Run tests:

npm test

Code Quality

Type checking

npm run type-check

Linting

npm run lint
npm run lint:fix  # Auto-fix issues

Formatting

npm run format        # Format code
npm run format:check  # Check formatting

Run all checks

npm run check

Project Structure

src/
├── index.ts          # Main server entry point
└── tools/
    ├── tiktoken.ts   # Token counting tool
    └── tiktoken.spec.ts # Tests for tiktoken tool

Available Tools

tiktoken

Counts tokens in the provided text using the GPT-4 tokenizer.

Parameters:

  • text (string): The text to analyze (minimum 1 character)

Returns:

  • Token count as a number

Example usage in Claude Desktop: Once configured, you can ask Claude to count tokens in text, and it will automatically use this tool.

Direct API usage:

{
  "name": "tiktoken",
  "arguments": {
    "text": "Hello, world!"
  }
}

CI/CD

The project includes GitHub Actions workflows for:

  • Continuous Integration: Runs tests, linting, and type checking on Node.js 18.x and 20.x
  • NPM Publishing: Automated publishing to NPM and GitHub Packages

Configuration

TypeScript

  • Target: ES2022
  • Module: NodeNext (for proper ES module support)
  • Strict mode enabled
  • Source maps and declarations generated

Dependencies

  • Runtime: fastmcp, js-tiktoken, zod
  • Development: TypeScript, ESLint, Prettier, Vitest

License

MIT

Author

Eric Berry ([email protected])