Skip to main content
Glama

mcp-server

Servidor Model Context Protocol (MCP) construido con mcp-framework.

1. Instalación y ejecución

  1. Instala las dependencias:

    npm install
  2. Compila el proyecto (esto es necesario cada vez que agregues o modifiques una tool):

    npm run build
  3. Levanta los contenedores MCP, n8n y postgres (esto reconstruye la imagen y toma los cambios):

docker-compose up mcp n8n postgres --build

Esto iniciará el servidor MCP, n8n y la base de datos postgres necesaria para n8n. Por defecto, n8n estará disponible en http://localhost:5678 en tu navegador.

Si solo quieres levantar n8n y postgres (por ejemplo, para pruebas de integración):

docker-compose up n8n postgres

Nota: El servicio de postgres es requerido por n8n para almacenar los datos de workflows, credenciales y ejecuciones.

Related MCP server: n8n-MCP

2. Crear una nueva Tool

Puedes crear una nueva tool usando el CLI del framework MCP. Ejemplo:

mcp add tool mi-nueva-tool

Esto generará un archivo en src/tools/. Edita el archivo para definir la lógica de tu tool.

Ejemplo básico:

import { MCPTool } from "mcp-framework";
import { z } from "zod";

interface MiToolInput {
  mensaje: string;
}

class MiTool extends MCPTool<MiToolInput> {
  name = "mi_tool";
  description = "Descripción de lo que hace tu tool";
  schema = {
    mensaje: {
      type: z.string(),
      description: "Mensaje de entrada",
    },
  };
  async execute(input: MiToolInput) {
    return `Procesado: ${input.mensaje}`;
  }
}

export default MiTool;

Recuerda ejecutar npm run build y reiniciar el contenedor para que la nueva tool esté disponible.

3. Integración con n8n

Para conectar n8n con MCP, configura el nodo MCP Client en n8n con la URL de tu servidor MCP, por ejemplo:
http://mcp:8080/mcp

Asegúrate de que el contenedor MCP esté corriendo y accesible desde n8n.

Ejemplo de configuración visual

Configuración del Webhook en n8n

WebhookConfig

Configuración del nodo AI Agent

AIAgentConfig

Configuración del nodo MCP Client

MCPClientConfig

Ejemplo de workflow completo

FullWorkFlow

4. Notas adicionales

  • Si agregas nuevas tools o modificas el código, siempre ejecuta npm run build antes de reiniciar el contenedor.

  • El contenedor MCP debe levantarse con el flag --build para tomar los cambios.

  • Las imágenes incluidas muestran ejemplos de configuración en n8n para facilitar la integración.

  • Para acceder a la interfaz de n8n, abre http://localhost:5678 en tu navegador.

5. Recursos

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    -
    quality
    -
    maintenance
    Provides seamless integration between MCP-compatible AI assistants and n8n workflow automation, enabling intelligent management and automation of n8n workflows through natural language.
    Last updated
    5
  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that provides AI assistants with access to documentation, schemas, and operations for over 535 n8n workflow automation nodes. It enables models to understand, create, and manage n8n workflows through natural language by connecting to the n8n API.
    Last updated
    122,092
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that empowers AI assistants to build, validate, and manage n8n workflows by providing structured access to documentation for over 1,200 nodes and thousands of templates. It enables deep integration with n8n instances for automated workflow orchestration and management through natural language.
    Last updated
    122,092
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • GibsonAI MCP server: manage your databases with natural language

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/backsoul/mcp-n8n'

If you have feedback or need assistance with the MCP directory API, please join our Discord server