Phrases MCP Server

Phrases MCP Server

An elegant MCP server that lets users manage inspirational phrases directly through Claude for Desktop, offering complete CRUD operations for phrases with author attribution.

Category
Visit Server

Tools

create-phrase

Creates a new phrase for an author.

get-all-phrases

Returns a list of all phrases.

get-phrase-by-id

Returns a phrase by its ID.

get-phrase-by-name

Returns a phrase by author name.

update-phrase

Updates the text of a phrase by its ID.

delete-phrase

Deletes a phrase by its ID.

README

🤖 Phrases MCP Server

Un servidor MCP (Model Context Protocol) elegante y eficiente para gestionar frases inspiradoras. Diseñado para integrarse perfectamente con Claude for Desktop y otros clientes MCP.

<div align="center"> <img src="https://github.com/ronniemh/phrases-MCP-server/raw/main/assets/diagram.png" alt="Diagrama de arquitectura" width="600"> </div>

✨ Características

  • Gestión completa de frases - Crea, lee, actualiza y elimina frases con facilidad
  • Integración con Claude for Desktop - Interactúa con tus frases directamente desde Claude
  • API Mock integrada - Utiliza una API mock para pruebas y desarrollo

🛠️ Herramientas disponibles

no El servidor expone las siguientes herramientas MCP:

Herramienta Descripción
get-all-phrases Obtiene todas las frases disponibles
get-phrase-by-id Busca una frase por su ID
get-phrase-by-name Busca frases por nombre de autor
create-phrase Crea una nueva frase
update-phrase Actualiza el texto de una frase existente
delete-phrase Elimina una frase por su ID

🚀 Instalación

# Clonar el repositorio
git clone https://github.com/ronniemh/phrases-MCP-server.git
cd phrases-MCP-server

# Instalar dependencias
npm install

# Compilar el proyecto
npm run build

🔌 Configuración con Claude for Desktop

  1. Instala Claude for Desktop (asegúrate de tener la última versión)

  2. Configura Claude for Desktop para usar este servidor MCP:

    Abre el archivo (MAC/Linux) de configuración en:

    ~/Library/Application Support/Claude/claude_desktop_config.json
    
  3. Agrega la configuración del servidor:

    {
        "mcpServers": {
            "phrases": {
                "command": "node",
                "args": [
                    "/RUTA_ABSOLUTA_A/phrases/build/index.js"
                ]
            }
        }
    }
    
  4. Reinicia Claude for Desktop

💡 Uso con Claude

Una vez configurado, puedes interactuar con tus frases directamente desde Claude for Desktop:

  • "Muéstrame todas las frases disponibles"
  • "Busca frases de [nombre de autor]"
  • "Crea una nueva frase para [nombre] que diga [texto]"
  • "Actualiza la frase con ID [número] a [nuevo texto]"
  • "Elimina la frase con ID [número]"

🧪 Pruebas

⚠️ Importante: Configuración para pruebas

Antes de ejecutar las pruebas, debes modificar temporalmente el archivo tsconfig.json. Cambia la sección compilerOptions a:

"compilerOptions": {
  "target": "ES2020",
  "module": "NodeNext",
  "moduleResolution": "NodeNext",
  "esModuleInterop": true,
  "outDir": "build",
  "strict": true
}

Nota: No olvides volver a la configuración original después de las pruebas para que la compilación del servidor MCP funcione correctamente.

Para ejecutar las pruebas:

npm run test:requests

Este comando ejecutará una serie de pruebas que crean, leen, actualizan y eliminan frases utilizando la API mock.

🏗️ Estructura del proyecto

src/
├── helpers/
│   └── makeMockAPIRequest.ts  # Funciones de ayuda para interactuar con la API
├── index.ts                   # Punto de entrada principal y definición de herramientas
└── testRequest.ts             # Script para probar las funciones de la API

🔄 Flujo de trabajo de desarrollo

  1. Modifica el código en src/
  2. Compila con npm run build
  3. Prueba con npm run test:requests
  4. Reinicia Claude for Desktop para aplicar los cambios

🔍 Configuración de MockAPI

Este proyecto utiliza MockAPI como backend para almacenar y gestionar las frases. La URL base configurada es:

https://67ec86aeaa794fb3222e0682.mockapi.io/frases/api/v1/user

Configurar tu propia instancia de MockAPI

  1. Crea una cuenta en MockAPI
  2. Crea un nuevo proyecto
  3. Crea un recurso llamado user con los siguientes campos:
    • id (number, autogenerado)
    • name (string)
    • phrase (string)
  4. Copia la URL de tu API
  5. Actualiza la constante BASE_URL en el archivo src/helpers/makeMockAPIRequest.ts
// Cambia esta línea con tu propia URL de MockAPI
const BASE_URL = "https://tu-proyecto.mockapi.io/tu-path/user";

📝 Notas adicionales

  • Este servidor utiliza una API mock para almacenar datos. En un entorno de producción, considera implementar una base de datos real.
  • La estructura del proyecto sigue las directrices oficiales de MCP para una mejor mantenibilidad.
  • Si encuentras problemas con la API mock, verifica los límites de uso gratuito de MockAPI.

📄 Licencia

ISC

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured