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

@damenor/mcp-tools

v0.1.0

Published

MCP Tools para traducción y otras utilidades usando OpenRouter

Readme

MCP TypeScript Tools

Descripción

Este es un servidor MCP (Model Context Protocol) implementado en TypeScript que proporciona herramientas para interactuar con LLMs, incluyendo traducción de texto y otras utilidades.

Características

  • Servidor HTTP con soporte para SSE (Server-Sent Events)
  • Herramienta de traducción al inglés usando OpenRouter
  • Herramienta de saludo personalizado
  • Alto rendimiento y tipado fuerte con TypeScript
  • Validación de entrada con Zod

Requisitos Previos

  • Node.js >= 18.0.0
  • NPM o Yarn o Bun
  • Clave de API de OpenRouter

Instalación

Instalación Global (Recomendado)

# Instalar globalmente
npm install -g @damenor/mcp-tools

# O con yarn
yarn global add @damenor/mcp-tools

# O con bun
bun add -g @damenor/mcp-tools

Instalación Local para Desarrollo

# Clonar el repositorio
git clone https://github.com/tu-usuario/mcp-ts.git

# Instalar dependencias
npm install

# Construir el proyecto
npm run build

Configuración

Variables de Entorno

Crea un archivo .env en la raíz del proyecto con:

OPENROUTER_API_KEY=tu_clave_aqui

Configuración para Herramientas MCP

Muchas herramientas como Windsurf, Cline y Claude Desktop utilizan un archivo de configuración para iniciar el servidor.

El servidor @damenor/mcp-tools puede configurarse añadiendo lo siguiente a tu archivo de configuración:

{
  "mcpServers": {
    "MCP Tools": {
      "command": "npx",
      "args": ["-y", "@damenor/mcp-tools", "--openrouter-api-key=<tu-api-key>", "--stdio"]
    }
  }
}

Argumentos de Línea de Comandos

  • --version: Mostrar número de versión
  • --stdio: Ejecutar el servidor en modo comando (para herramientas MCP)
  • --port: Puerto para el servidor HTTP (por defecto: 3333)
  • --openrouter-api-key: Tu clave de API de OpenRouter (requerida)
  • --help: Mostrar menú de ayuda

Desarrollo

# Iniciar en modo desarrollo con hot reload
npm run dev

# Compilar para producción
npm run build

# Iniciar en producción
npm start

# Iniciar en modo CLI
npm run start:cli

# Iniciar en modo HTTP
npm run start:http

Uso

Herramientas Disponibles

Traductor al Inglés

{
  name: "translate_to_english",
  params: {
    text: string // Texto a traducir (máximo 1000 caracteres)
  }
}

Saludo

{
  name: "greeting",
  params: {
    name: string,
    language?: 'en' | 'es',
    formality?: 'formal' | 'informal'
  }
}

Ejemplos de Uso

# Traducir texto
mcp-ts translate_to_english "Hola, ¿cómo estás?"

# Saludar
mcp-ts greeting --name "Juan" --language "es" --formality "informal"

Estructura del Proyecto

src/
├── tools/              # Herramientas MCP
│   ├── translate/      # Herramienta de traducción
│   └── greeting/       # Herramienta de saludo
├── utils/             # Utilidades
├── constants/         # Constantes
└── types/            # Definiciones de tipos

Scripts Disponibles

  • npm run build - Compilar el proyecto
  • npm run dev - Iniciar en modo desarrollo
  • npm run start - Iniciar en producción
  • npm run lint - Ejecutar linter
  • npm run format - Formatear código
  • npm run type-check - Verificar tipos
  • npm run inspect - Inspeccionar respuestas MCP

Rendimiento

Este proyecto está optimizado para:

  • Respuestas rápidas
  • Validación eficiente
  • Manejo de errores robusto
  • Tipado fuerte con TypeScript
  • Modularidad y extensibilidad

Licencia

MIT