antlr4-mcp-server
Verified Safeby sshailabh
Overview
MCP server enabling AI assistants to help with ANTLR4 grammar development by providing grammar analysis, parsing, and code generation capabilities.
Installation
docker run -i --rm sshailabh1/antlr4-mcp-server:latestEnvironment Variables
- JAVA_OPTS
Security Notes
The server includes robust security measures designed for LLM interaction: input validation (regex patterns for grammar/rule names, detection of shell metacharacters), path traversal prevention, and strict resource limits (max grammar/input sizes, process execution timeouts for compilation, and output truncation). The Docker setup further enhances security by running read-only containers with restricted privileges and temporary files mounted to a tmpfs with noexec/nosuid. No hardcoded secrets or malicious patterns were found.
Similar Servers
mcp-language-server
Serves as an MCP (Model Context Protocol) gateway, enabling LLMs to interact with Language Servers (LSPs) for codebase navigation, semantic analysis, and code editing operations.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcp-server-antv
A Model Context Protocol (MCP) server that provides AntV documentation context and code examples for AI development and quality assurance workflows.
mcp-annotated-java-sdk
Annotation-driven framework for building Model Context Protocol (MCP) servers in Java, simplifying the definition and integration of resources, prompts, and tools for LLM applications.