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

primeng-mcp-server

v1.0.5

Published

MCP server for PrimeNG documentation

Downloads

41

Readme

PrimeNG MCP Server

Servidor MCP (Model Context Protocol) para consultar documentación de PrimeNG desde asistentes compatibles (como Windsurf).

Provee herramientas para:

  • Obtener detalles de un componente específico (selector, descripción, etc.).
  • Listar componentes disponibles (heurístico).
  • Buscar en la documentación por término (heurístico).

Requisitos

  • Node.js >= 18 (recomendado Node 20 o 22).
  • Acceso a Internet (hace scraping de https://primeng.org).

Instalación y uso

Configura Windsurf en tu equipo con npx (descarga y ejecuta la última versión publicada) Edita tu archivo c:/Users/<tu_usuario>/.codeium/windsurf/mcp_config.json y agrega:

{
  "mcpServers": {
    "primeng": {
      "command": "npx",
      "args": ["-y", "primeng-mcp-server"],
      "transport": "stdio",
      "env": {}
    }
  }
}
  • Si prefieres fijar versión para estabilidad:
{
  "mcpServers": {
    "primeng": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "transport": "stdio",
      "env": {}
    }
  }
}
  1. Refresca MCP Servers en Windsurf (o reinicia el asistente). Deberías ver el servidor primeng y sus tools.

Otras formas de uso

Instalación global

npm i -g primeng-mcp-server

Configura Windsurf:

{
  "mcpServers": {
    "primeng": {
      "command": "primeng-mcp-server",
      "args": [],
      "transport": "stdio",
      "env": {}
    }
  }
}

Scripts disponibles

  • npm run build: Compila TypeScript a dist/.
  • npm start: Ejecuta node dist/index.js (modo build).
  • npm run dev: Ejecuta con ts-node --esm src/index.ts (modo desarrollo). No recomendado para Windsurf; usa dist.

Herramientas expuestas (tools)

  • get_primeng_component

    • Parámetros: { componentName: string } (ej.: "Button", "Table", "Dialog").
    • Devuelve JSON con campos: name, description, selector, properties, methods, events, cssVariables, examples (algunos extraídos heurísticamente o TODO).
  • list_primeng_components

    • Sin parámetros.
    • Devuelve una lista heurística de componentes detectados en la página.
  • search_primeng_documentation

    • Parámetros: { query: string }.
    • Busca el término en páginas de componentes (hasta un límite razonable) y devuelve coincidencias con snippet.

Ejemplos de uso desde Windsurf

  • Ejecuta list_primeng_components y revisa la salida.
  • Ejecuta get_primeng_component con { "componentName": "Button" }.
  • Ejecuta search_primeng_documentation con { "query": "filter" }.

Solución de problemas

  • Proxy corporativo / Internet restringido:
    • Configura variables HTTP_PROXY/HTTPS_PROXY en env del servidor MCP, por ejemplo:
{
  "mcpServers": {
    "primeng": {
      "command": "npx",
      "args": ["-y", "primeng-mcp-server"],
      "transport": "stdio",
      "env": {
        "HTTPS_PROXY": "http://proxy.miempresa:8080",
        "HTTP_PROXY": "http://proxy.miempresa:8080"
      }
    }
  }
}
  • El scraping es heurístico y puede ser más lento con límites altos; reduce el alcance aumentando caché o disminuyendo límites en búsqueda.