PascalAI combines the clarity and performance of Pascal with native AI integration, a rich package ecosystem, and first-class MCP tool support.
program HelloAI; uses pai.http, pai.json, pai.ai; var Client : THttpClient; Response : TJsonObject; Summary : string; begin // Fetch data from an API Client := THttpClient.Create; Response := TJson.Parse(Client.Get('https://api.example.com/news')); // Summarize with AI in one line Summary := AI.Summarize(Response['content'].AsString); WriteLn('Summary: ', Summary); end.
A complete toolchain for building AI-powered applications with PascalAI.
Fast, native compiler for Windows, Linux and macOS. Generates optimized binaries with zero runtime overhead.
Get the compiler →Web-based and desktop IDE with syntax highlighting, autocomplete and integrated AI assistant.
Open editor →Package manager with hundreds of libraries, C bindings and MCP tools ready to install with one command.
Browse packages →Full language reference, tutorials, and API documentation for the standard library and core packages.
Read the docs →PascalAI keeps Pascal's legendary readability while adding the tools modern developers need.
Compiles to native machine code. No VM, no JIT — just fast, lean binaries on every platform.
First-class AI primitives built into the standard library. Call LLMs, run embeddings, and use MCP tools natively.
Hundreds of packages covering HTTP, databases, cryptography, graphics, machine learning and more.
Install and use Model Context Protocol tools directly via PPM. Plug AI capabilities into any app.
Pascal's explicit, verbose syntax means code reads like prose — easy to maintain and review.
One codebase for Windows, Linux x64, Linux ARM64 and macOS — desktop, server and embedded.
Install the compiler and PPM, then start building.
Windows (PowerShell):
irm https://raw.githubusercontent.com/gustavoeenriquez/ppm/main/install.ps1 | iex
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/gustavoeenriquez/ppm/main/install.sh | bash
ppm install pascalai-compiler
mkdir myapp && cd myapp
ppm init
pai build && pai run