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

@pikku/modelcontextprotocol

v0.11.1

Published

A Pikku MCP server runtime using the official MCP SDK

Readme

@pikku/mcp-server

A Pikku MCP server runtime that uses the official MCP SDK to expose Pikku endpoints as MCP tools.

Features

  • Uses the official @modelcontextprotocol/sdk for MCP compliance
  • Automatically loads Pikku MCP endpoints from generated bootstrap files
  • Configurable server name, version, and capabilities
  • Supports both tools and resources
  • JSON-RPC 2.0 compliant via Pikku's core MCP system
  • Stdio transport for seamless integration with MCP clients

Usage

1. Generate MCP Files

First, generate the MCP JSON and bootstrap files using the Pikku CLI:

npx pikku mcp

This creates:

  • mcp.json - MCP tool definitions with schemas
  • mcp-bootstrap.ts - Bootstrap file that registers all endpoints

2. Import MCP Bootstrap and Create Server

import { PikkuMCPServer } from '@pikku/mcp-server'
import { createSingletonServices } from './services'

// Import your generated MCP bootstrap to register endpoints
import './mcp-bootstrap.js'

const config = {
  name: 'my-pikku-server',
  version: '1.0.0',
  mcpJsonPath: './mcp.json',
  capabilities: { tools: {} },
  // ... other CoreConfig options
}

const singletonServices = await createSingletonServices(config)
const server = new PikkuMCPServer(
  config,
  singletonServices,
  createWireServices // optional
)

await server.init()
await server.start()

3. Integration with MCP Clients

The server uses stdio transport and can be integrated with any MCP client:

{
  "mcpServers": {
    "pikku-server": {
      "command": "node",
      "args": ["./dist/server.js"]
    }
  }
}

Configuration

The MCPServerConfig interface extends Pikku's CoreConfig with:

  • name: Server name for MCP identification
  • version: Server version
  • mcpJsonPath: Path to generated MCP JSON schema file
  • capabilities: Optional MCP capabilities configuration

How It Works

  1. Bootstrap Import: User imports MCP bootstrap file to register Pikku endpoints
  2. Initialization: Server loads MCP JSON schema and discovers registered endpoints
  3. Tool Discovery: ListToolsRequestSchema handler returns available tools from JSON
  4. Tool Execution: CallToolRequestSchema handler routes requests to Pikku's MCP system
  5. Response Formatting: Converts Pikku responses to MCP format

Example MCP Tool Response

{
  "content": [
    {
      "type": "text",
      "text": "{\"userId\": \"123\", \"name\": \"John Doe\"}"
    }
  ]
}