Skip to main content
Glama

n8n MCP Server

by get2knowio
CONTRIBUTING.md2.15 kB
# Contributing to n8n-mcp Thanks for your interest in contributing! This document describes the local development workflow, validation steps, and helpful commands. ## Prerequisites - Node.js 18, 20, or 22 (project is tested against all three) - npm ## Setup ```bash npm install npm run build ``` ## Development - Watch mode: `npm run dev` - Lint/typecheck: `npm run lint` ## Testing ```bash # Run tests npm test # Watch mode npm run test:watch # Coverage npm run test:coverage ``` ## Local CLI (from repository) When working from a local checkout, use the npm script that runs the built CLI: ```bash npm run cli list npm run cli get 1 npm run cli create examples/example-workflow.json npm run cli delete 1 npm run cli activate 1 npm run cli deactivate 1 npm run cli executions list npm run cli variables list npm run cli tags list ``` Pagination and flags examples: ```bash npm run cli list -- --limit 25 --cursor NEXT_CURSOR npm run cli executions list -- --limit 50 --workflow-id 1 ``` (Note the `--` to pass flags through npm when needed.) ## Local MCP server (from repository) Start the stdio MCP server directly from the build output: ```bash npm start ``` This runs `node dist/index.js` and prints status to stderr. Ensure required environment variables are set (see README). ## Validation Checklist (before committing) Run these fast checks locally to match CI: ```bash npm run lint npm run build npm test npm run test:coverage ``` ## Pull Requests - Follow existing code style - Add or update tests when changing behavior - Include issue auto-closing keywords in the PR description (e.g., `Fixes #12`) ## Development For local development, testing, and release workflows, see the sections above in this document. ### Contributing 1. Fork the repository 2. Create your feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add some amazing feature'`) 4. Push to the branch (`git push origin feature/amazing-feature`) 5. Open a Pull Request All contributions are welcome! Please make sure to update tests as appropriate and follow the existing code style. Thanks again for contributing!

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/get2knowio/n8n-mcp'

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