Back to Browse

Angelscript MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Compile checks, symbol search and host API lookup for AngelScript scripts.

About

Compile checks, symbol search and host API lookup for AngelScript scripts.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (3 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

10 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@angelscript-tools/mcp@0.1.2"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

angelscript-mcp

English | Español

npm License: MIT

An MCP server that lets an AI agent write AngelScript that runs inside a host application, such as a game. It gives the agent compile checks that know the host API, symbol search, references, rename and host API lookup, by wrapping the angel_lsp language server.

Host applications register their own functions and types in C++, so a model cannot know them. The server reads the host's .as.predefined stub and tells the agent what exists, instead of letting it invent an API.

For a skill that teaches the workflow, and one-step installs for Claude Code, Codex, Gemini CLI and Antigravity, see angelscript-agent-kit.

Install

You need Node.js 20 or newer. Nothing else: the first time it runs, the server downloads the angel_lsp language server it wraps, checks it against SHA256SUMS and caches it.

Pick the row that matches how you work:

You useDo this
Claude Code, Codex, Gemini CLI or Antigravity, and want the skill tooInstall angelscript-agent-kit. It adds the skill and this server in one step
Claude Codeclaude mcp add angelscript -- npx -y @angelscript-tools/mcp
Codexcodex mcp add angelscript -- npx -y @angelscript-tools/mcp
Gemini CLIgemini mcp add angelscript npx -y @angelscript-tools/mcp
Antigravityagy mcp add angelscript npx -y @angelscript-tools/mcp
Claude DesktopDownload angelscript-mcp-<version>.mcpb from the releases and open it. Choose your project folder when it asks
CursorPut the JSON below in .cursor/mcp.json (this project) or ~/.cursor/mcp.json (every project)
VS Code (Copilot)Put the JSON below in .vscode/mcp.json, with the key servers instead of mcpServers
Any other MCP clientPut the JSON below in its MCP configuration
Containerdocker run -i --rm -v "$PWD:/workspace" ghcr.io/angelscript-tools/angelscript-mcp
{
  "mcpServers": {
    "angelscript": {
      "command": "npx",
      "args": ["-y", "@angelscript-tools/mcp"]
    }
  }
}

The server starts in the current folder, which it treats as the project root. Use --root <dir> to choose another.

On Windows, if a client cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "@angelscript-tools/mcp"].

In non-interactive runs such as codex exec, npx can start after the first turn and the tools are missing. Install once with npm install -g @angelscript-tools/mcp and register angelscript-mcp as the command instead of npx.

On Linux the downloaded angel_lsp needs glibc 2.38 or newer (Debian 13, Ubuntu 24.04, Fedora 39 and later). On an older system, get or build angel_lsp yourself and pass --lsp-path.

Configure the project

The server reads the angelscript.* keys of .vscode/settings.json in the project root, the same file the VS Code extension uses:

{
  "angelscript.predefined.active": "${workspaceFolder}/api/game.as.predefined",
  "angelscript.searchDirectories": ["${workspaceFolder}/scripts"],
  "angelscript.modules": [{ "name": "Game", "entry": "${workspaceFolder}/scripts/main.as" }],
  "angelscript.include.implicitExtension": true
}

Without a stub the server only checks the language itself, and angelscript_project_info warns about it.

OptionMeaning
--root <dir>Project root. Default: the current folder.
--lsp-path <file>The angel_lsp executable.
--predefined <file>Host stub to use instead of the one in settings.json.
--rules-file <file>Engine rules file to use instead of the one in settings.json.

The server finds angel_lsp in this order: --lsp-path, the ANGELSCRIPT_LSP_PATH variable, PATH, and a download of the release pinned in package.json, checked against SHA256SUMS and cached in your user cache folder.

Check that it works

Open your project and ask the agent to call angelscript_project_info. It should report the engine version, the host stub and the modules. If the stub shows none, follow Configure the project.

Tools

ToolUse
angelscript_project_infoEngine version, host stubs, modules, rules file and setup warnings. Call it first.
angelscript_checkCompile-check files, or the whole workspace, and list errors with line and column.
angelscript_host_apiLook up a host function, type or enum by part of its name, with documentation and members.
angelscript_find_symbolFind where a class, function, method or field is declared; can return its source.
angelscript_find_referencesList every use of a symbol, grouped by file with the source line.
angelscript_file_outlineThe classes, functions and fields of one file, with signatures and line ranges.
angelscript_describe_symbolSignature and documentation of a script or host symbol.
angelscript_rename_symbolRename across files. It previews first and writes only with apply=true.

Name a symbol as Namespace::Class::member. When a name is ambiguous or overloaded, pass path/to/file.as:LINE. Paths are relative to the project root and lines are 1-based.

Every tool returns compact Markdown. Pass response_format: "json" for structured data. Long results are paged with limit and offset and capped at 20 000 characters. Errors say what went wrong and suggest the closest name:

> angelscript_check
2 errors, 2 warnings in 2 files.
scripts/main.as:16:15  warning  W103  Local variable 'e' is never used.
scripts/main.as:16:19  error    E111  Undefined identifier 'Game::SpwnEnemy'.
scripts/main.as:17:25  error    W108  Undeclared identifier 'missingText'.

> angelscript_host_api  query="Spwn"
The host API has no declaration matching 'Spwn'. Did you mean: `Game::SpawnEnemy`? ... Do not invent the function; ask the user.

The tools read files from disk, so an agent edits with its own file tools and then calls angelscript_check. Only angelscript_rename_symbol with apply=true writes files.

Develop

npm ci
npm run build
ANGELSCRIPT_LSP_PATH=/path/to/angel_lsp npm test
npx @modelcontextprotocol/inspector node dist/index.js --root /path/to/project

See CONTRIBUTING.md for the rules every tool follows.

Support

Open an issue.

Related

ProjectUse
angelscript-lspThe language server this server wraps, and the VS Code extension
angelscript-cliRun and check loose scripts from the terminal
angelscript-agent-kitSkill and one-step installs for AI agents
angelscript-dapDebugger core (Debug Adapter Protocol)
angelscript-debugger-exampleA host that shows how to embed the debugger
angelscript-jitOptional JIT compiler
angelscript-enginePatched SDK builds for AngelScript 2.20 to 2.39
tree-sitter-angelscriptTree-sitter grammar the language server uses
angelscript-api-dumperWrites .as.predefined stubs from a running engine

Credits

ProjectLicenseUse
AngelScript by Andreas JönssonzlibThe language
Model Context Protocol SDKMITThe MCP implementation

License

This repository is licensed under the MIT License.

Reviews

No reviews yet

Be the first to review this server!