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

mcp-next-shadcn-server

v1.0.2

Published

Model Context Protocol (MCP) server that Langflow can use to fetch Next.js and shadcn/ui documentation on the fly. Langflow’s new MCP integration allows it to connect to external MCP servers as tools​. Our goal is to create an MCP server (runnable with a

Downloads

14

Readme

🛠️ Querying MCP Tools from the Command Line

This guide walks you through the process of discovering and invoking tools from an MCP (Model Context Protocol) server directly via your terminal.


✅ Prerequisites

Ensure you have the following installed:

  • Node.js and npx: Verify installation by running:

    node -v
    npx -v
  • MCP Tools CLI: Install using Homebrew:

    brew tap f/mcptools
    brew install mcp

    Alternatively, install from source:

    go install github.com/f/mcptools/cmd/mcptools@latest
  • jq: For formatting JSON responses:

    brew install jq

🔍 Listing Available Tools

To view all tools provided by your MCP server:

mcp tools npx -y your-mcp-package

Replace your-mcp-package with the name of your MCP server package.

For example, if your package is named next-shadcn-mcp:

mcp tools npx -y next-shadcn-mcp

This command will output a list of available tools along with their descriptions.


🚀 Invoking a Tool

To call a specific tool with parameters:

mcp call tool-name --params '{"parameter": "value"}' npx -y your-mcp-package

For instance, to query the nextjs-docs tool with the topic "app router":

mcp call nextjs-docs --params '{"query": "app router"}' npx -y next-shadcn-mcp

This will execute the nextjs-docs tool with the provided query.


🐚 Interactive Shell Mode

For a more interactive experience, start an MCP shell session:

mcp shell npx -y your-mcp-package

Within this shell, you can list tools, invoke them, and view results without restarting the server each time.


🧪 Using Raw JSON-RPC Requests

If you prefer to interact with your MCP server using raw JSON-RPC requests, you can use curl. Here's how to list available tools:

curl -X POST http://localhost:3000 -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 1
}'

Replace http://localhost:3000 with your MCP server's endpoint.


📚 Additional Resources


By following these steps, you can effectively query and interact with the tools provided by your MCP server directly from the command line.