CODESYS MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CODESYS MCP Serverexplain how to use timers in Structured Text"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CODESYS MCP Server
A Model Context Protocol server for CODESYS Development System V3. It gives MCP clients curated CODESYS guidance, Structured Text writing help, searchable local PDF documentation, and optional live lookup of allowlisted official CODESYS pages.
The server can run over HTTP at /mcp or over stdio for direct CLI and agent integration. Official pages are summarized and cited rather than copied into the project. Primary official sources include CODESYS Online Help and CODESYS Examples.
Tools
search_codesys_docs: search curated and/or official CODESYS guidance.get_codesys_topic: explain a known topic such as POUs, function blocks, timers, tasks, variables, libraries, debugging, or Structured Text.codesys_writing_guidance: provide practical CODESYS and Structured Text design guidance for a requested task.list_codesys_pdfs: list PDF documents available in the configured PDF folder.search_codesys_pdfs: search text extracted from local PDF documents.get_codesys_pdf: return extracted text from a specific local PDF document.get_codesys_page: fetch the full text content of any allowlisted CODESYS documentation URL.crawl_codesys_help: crawl and index the CODESYS help site for searchable documentation.
What It Does
Searches curated CODESYS guidance for concepts, syntax, and workflow help.
Explains common CODESYS topics such as POUs, function blocks, timers, tasks, variables, libraries, debugging, and Structured Text.
Provides practical Structured Text and project-structure guidance.
Searches local PDF manuals and notes placed in
docs/pdfs/.Fetches and summarizes allowlisted official CODESYS documentation pages.
Crawls the official help site to build a searchable index.
Install For A Human
Use this when you want to run the server yourself on your machine.
Prerequisites:
Node.js 20 or newer
npm
From a fresh clone:
npm install
cp .env.example .env
npm run buildStart the HTTP server:
npm startOr start the stdio server:
npm run start:stdioBy default, the HTTP server listens on http://0.0.0.0:3000/mcp.
Install For An LLM Or Agent
AI agent? Read
agent.md— it contains the complete, step-by-step self-installation guide written specifically for you. Start there.
Use this section when an LLM is being instructed to connect itself to the server as an MCP client.
Suggested instruction to give the LLM:
Read agent.md in the repository root. It contains the exact steps to install this MCP server into yourself.Build the project first:
npm install
npm run buildPrefer stdio transport for local agent integration.
Add the server to the client using the local build output:
claude mcp add --transport stdio codesys-docs -- node ./dist/src/cli.js --stdioIf the client needs HTTP instead, start the server and register the endpoint:
npm startclaude mcp add --transport http codesys-docs http://localhost:3000/mcpIf the agent can only work from a published package, use:
claude mcp add --transport stdio codesys-docs -- npx -y codesys-mcp-server --stdioFor Codex CLI:
codex mcp add codesys-docs -- node ./dist/src/cli.js --stdioQuick Start
npm install
cp .env.example .env
npm run build
npm startThe server listens on http://0.0.0.0:3000/mcp by default.
Docker
docker compose up --buildThe compose file mounts ./docs/pdfs into the container as read-only, so you can add PDFs locally without rebuilding the image.
PDF Folder
Put CODESYS manuals, vendor PDFs, project notes, datasheets, or exported documentation in:
docs/pdfs/The MCP server extracts text from .pdf files in that folder and makes them available through:
search_codesys_docswithsourceMode: "pdf"orsourceMode: "all"list_codesys_pdfssearch_codesys_pdfsget_codesys_pdf
PDF text extraction is best for searchable text PDFs. Scanned image-only PDFs may return little or no content unless OCR has already been applied. Extracted text may omit diagrams, screenshots, formatting, and some tables, so important engineering details should be verified against the original PDF.
Configuration
Variable | Default | Description |
|
| HTTP port. |
|
| Bind host. |
|
| Enables live official CODESYS page lookup. |
|
| Fetch timeout per official page. |
|
| In-memory cache TTL for official pages. |
|
| Enables text extraction/search for local PDFs. |
|
| Folder scanned for |
|
| Maximum extracted text stored per PDF. |
CLI Usage
# HTTP server (default)
node dist/src/cli.js
npm start
# Stdio server (for Claude Code / Codex CLI MCP integration)
node dist/src/cli.js --stdio
npm run start:stdioAcceptance Checks
npm test
npm run build
curl http://localhost:3000/healthzThis server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/Zandiexoder/CodeSYS-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server