agentleFS
czlonkowskiczlonkowski/n8n-mcp/AGENTS.md

n8n-mcp

AGENTS.md23k starsChanged 3 months agoMITView on GitHub

This file is committed to a public OSS repository. Never add API keys, credentials, private URLs, customer data, or private infrastructure details. n8n-mcp is a Model Context Protocol server that gives AI assistants access to n8n node documentation, workflow validation, and workflow management. Documentation and validation tools work offline against the bundled SQLite node database. Management tools prefixed with n8n_ operate on a live n8n instance and require API configuration. Core TypeScript lives in src/. Important subsystems include: Tests mirror…

  • Reads credentials
  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 4 mentionsFeb 2026: 1 mentionMar 2026: 5 mentionsApr 2026: 3 mentionsMay 2026: 7 mentionsJun 2026: 4 mentionsJul 2026: 4 mentionsAug 2026: 4 mentionsSep 2026: 7 mentionsOct 2026: 28 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the czlonkowski/n8n-mcp repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about czlonkowski/n8n-mcp

The biggest 5 of 78 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 78

Talked about on GitHub, Bluesky, the web and Hacker News (78 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 20

15 more on Bluesky

On the web · 6

1 more on the web
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Prefer diff-based workflow changes through n8n_update_partial_workflow.

    line 30
  2. Very specific:

    Run npm run typecheck after every code change and npm run build after MCP server changes.

    line 77
  3. Distinctive:

    After rebuilding server code, ask the user to reload the MCP server before testing the changed MCP behavior.

    line 78
  4. Very specific:

    Run focused tests while iterating, npm run test:unit for the fast suite, and relevant integration or end-to-end tests for system behavior.

    line 80
  5. Very specific:

    Run npm run test:coverage before substantial pull requests.

    line 81
  6. Distinctive:

    Do not mask flaky tests with retries.

    line 82
  7. Very specific:

    When reviewing a GitHub issue, use gh to fetch the issue and all comments.

    line 83
  8. Distinctive:

    When a task has genuinely independent subtasks, use appropriately specialized sub-agents in parallel.

    line 87
  9. Very specific:

    Use Conventional Commit prefixes such as feat:, fix:, docs:, chore:, and scoped forms such as ci(deps):.

    line 93
  10. Very specific:

    Start from .env.example and keep local secrets untracked.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guidelines

This file is committed to a public OSS repository. Never add API keys, credentials, private URLs, customer data, or private infrastructure details.

Project Overview

n8n-mcp is a Model Context Protocol server that gives AI assistants access to n8n node documentation, workflow validation, and workflow management. Documentation and validation tools work offline against the bundled SQLite node database. Management tools prefixed with n8n_ operate on a live n8n instance and require API configuration.

Project Structure & Module Organization

Core TypeScript lives in src/. Important subsystems include:

  • src/mcp/ — MCP server, request handlers, tool definitions and documentation, and bundled skills
  • src/database/ — SQLite adapters, repositories, FTS5 search, and migrations
  • src/loaders/, src/parsers/, src/mappers/ — node loading, metadata parsing, and documentation mapping
  • src/services/ — validation, workflow diffing and autofix, node/version lookup, the n8n API client, and security scanners
  • src/templates/ and src/community/ — workflow-template and community-node ingestion and documentation
  • src/telemetry/, src/triggers/, and src/n8n/ — telemetry, trigger detection, and the n8n community-node wrapper
  • src/scripts/ — maintenance scripts compiled to dist/scripts/
  • src/types/, src/constants/, and src/utils/ — shared types, constants, and helpers
  • src/http-server*.ts — HTTP transports and session persistence
  • src/mcp-engine.ts and src/mcp-tools-engine.ts — APIs for embedding the server

Tests mirror the source areas in tests/unit/ and tests/integration/, with fixtures, factories, helpers, and mocks under tests/. React/Vite apps live in ui-apps/src/, repository utilities in scripts/, documentation in docs/, and generated skills and databases in data/. Treat dist/, coverage output, and ui-apps/dist/ as generated; do not edit them directly.

Architecture & MCP Conventions

  • Route database operations through repository classes and keep business logic in the service layer.
  • Validation profiles are minimal, runtime, ai-friendly, and strict.
  • Prefer diff-based workflow changes through n8n_update_partial_workflow; do not replace a whole workflow when a focused operation is sufficient.
  • Offline documentation and validation tools include search_nodes, get_node, validate_node, validate_workflow, search_templates, get_template, and tools_documentation.
  • Live management tools use the n8n_* prefix and cover workflows, executions, tests, versions, autofix, templates, credentials, datatables, and audits.
  • Request the smallest useful get_node detail level: minimal, standard, or full.
  • Validate workflows before deploying them to n8n.

Build, Test, and Development Commands

# Install and build
npm install                    # Install root dependencies; repeat in ui-apps/ for UI work
npm run build                  # Compile production TypeScript to dist/
npm run build:all              # Sync skills, build UI apps, and compile the server
npm run typecheck              # Strict TypeScript check without emitting; npm run lint is an alias

# Test
npm test                       # Run all Vitest tests
npm run test:unit              # Unit tests
npm run test:integration       # Integration tests
npm run test:e2e               # End-to-end tests
npm run test:coverage          # Coverage report
npm test -- tests/unit/services/property-filter.test.ts

# Run and maintain
npm start                      # MCP server in stdio mode
npm run start:http             # MCP server in HTTP mode
npm run dev:http               # Rebuild and restart HTTP mode on source changes
npm run rebuild                # Rebuild the bundled node database
npm run validate               # Validate generated node data
npm run dev                    # Build, rebuild the database, and validate

# Update bundled data
npm run update:n8n:check       # Dry-run n8n dependency update; follow MEMORY_N8N_UPDATE.md
npm run update:n8n             # Update n8n packages
npm run fetch:templates        # Fetch n8n.io templates; follow MEMORY_TEMPLATE_UPDATE.md
npm run fetch:community        # Upsert community nodes while preserving existing docs
npm run generate:docs:incremental # Generate docs for community nodes missing them

Database rebuilds take several minutes because of the n8n package size. HTTP mode requires valid auth configuration, and live n8n tests require configuration and a clean database state.

Coding Style & Naming Conventions

Use strict TypeScript, two-space indentation, single quotes, and semicolons. Prefer camelCase for variables and functions, PascalCase for classes and types, and kebab-case filenames such as workflow-auto-fixer.ts. Use the configured @/ and @tests/ aliases where helpful. Keep modules focused, validate external input, and do not use hyperbolic or dramatic language in comments or documentation. No separate formatter is configured; npm run typecheck is the required static check.

Development & Testing Workflow

  • Run npm run typecheck after every code change and npm run build after MCP server changes.
  • After rebuilding server code, ask the user to reload the MCP server before testing the changed MCP behavior.
  • Name tests *.test.ts and place them in the matching test subtree. Use MSW for API mocking.
  • Run focused tests while iterating, npm run test:unit for the fast suite, and relevant integration or end-to-end tests for system behavior.
  • Run npm run test:coverage before substantial pull requests. Coverage thresholds are 75% for lines, functions, and statements and 70% for branches.
  • Do not mask flaky tests with retries.
  • When reviewing a GitHub issue, use gh to fetch the issue and all comments.

Sub-agents

  • When a task has genuinely independent subtasks, use appropriately specialized sub-agents in parallel.
  • Give each sub-agent a bounded scope and clear file ownership.
  • Sub-agents must not spawn additional sub-agents, commit, or push. The primary agent owns integration, verification, commits, and pushes.

Commit & Pull Request Guidelines

Use Conventional Commit prefixes such as feat:, fix:, docs:, chore:, and scoped forms such as ci(deps):. Work on a feature branch and never commit directly to main. Keep commits narrowly scoped and do not include unrelated dirty-worktree changes.

PRs should explain intent and verification, link relevant issues, include screenshots for UI changes, and enable “Allow edits by maintainers.” Add the following attribution to every commit message and PR description:

Conceived by Romuald Członkowski - https://aiadvisors.pl/en

The attribution belongs only in commit messages and PR descriptions. Never add it to source, test, documentation, or other product file contents.

Security & Configuration

Start from .env.example and keep local secrets untracked. Never commit credentials, API keys, private URLs, customer data, or sensitive configuration. Confirm the intended n8n instance before using live management tools, and validate workflows before deployment.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.