---
title: 'Grav - Modern Flat-File & API-First CMS'
url: 'https://getgrav.org/'
markdown: 'https://getgrav.org/index.md'
date: '2026-08-13'
description: 'Build Faster Websites Grav is a modern open source flat-file CMS'
---

Grav 2 is here  

#  A CMS for humans & agents  

 Grav 2 keeps everything you love about Grav: fast, flat-file, Markdown, YAML, Multi-lang, now with a first-party API, an MCP server, and a new SPA admin built on SvelteKit 5.

 [  Download Grav 2 → ](https://getgrav.org/downloads) [  Migrate from 1.x ](https://getgrav.org/migrate-to-2) 

 Stable 2.2.29 NEW 1 day ago 

 [ What's new    ](#whats-new) 

Grav 2

##  The Grav 2 leap 

A first-party API, a modern SPA admin, and an MCP server, all on one consistent interface.

ADMIN 2.0

### A modern admin, rebuilt from scratch.

SvelteKit 5, Vite, Tailwind 4. Instant SPA navigation, a customizable dashboard, real-time collaborative editing, CodeMirror, Uppy media. And every blueprint you already use just works.

  Meet Admin 2.0 → [A modern admin, rebuilt from scratch.](https://getgrav.org/blog/grav-2-admin-next)

FIRST-PARTY API

### The foundation Grav 2 is built on.

A stable REST API powers the admin, respects Grav’s permission model, and is plugin-extensible. Headless frontends, CI/CD, mobile apps: all first-class citizens.

  Explore the API → [The foundation Grav 2 is built on.](https://getgrav.org/blog/grav-2-api)

MCP SERVER

### Built for agents, too.

Admin 2.0 is for humans. The MCP server is for AI. Both go through the same API, with the same permissions. No AI sidecar, no duct tape.

  See the MCP server → [Built for agents, too.](https://getgrav.org/blog/grav-2-mcp-server)

 [  Read the 2.0 announcement → ](https://getgrav.org/blog/grav-2-stable-released) [  How to migrate to Grav 2 ](https://getgrav.org/migrate-to-2) 

Admin 2.0

##  Your new command center 

The classic admin has been **completely replaced**. Admin 2.0 is a modern single-page application built on **SvelteKit 5, Vite, and Tailwind 4**, talking to Grav through the new first-party API.

A **customizable dashboard** you can reorder and resize per user. **Real-time collaborative editing** with named cursors and live presence, powered by the *sync* plugin (or *sync-mercure* for sub-100ms SSE updates). A built-in CodeMirror editor, Uppy-powered media, and a polished TypeScript component library. Every blueprint, form field, and workflow you already use *just works*.

 No database API-first Agent-ready Customizable dashboard Real-time collab Markdown + YAML Git-friendly 

 GRAV 

  Dashboard 

  Configuration 

  Users 1 

  Pages 68 

  Media 6 

  Plugins 34 

  Themes 4 

  Tools 

  Licenses 

  Image Optimize 

  YetiSearch Pro 

 Admin  

Grav v2.1.2

 localhost View site     

Dashboard

Welcome back, Admin

 Refresh 

68

Pages

1

Users

34

Plugins (31 active)

quark2

Active Theme

Page Views

 426 wk 706 mo 

Updates

Everything up to date

System

 Gravv2.1.2 

 PHPv8.3.30 

A modern stack

##  Built for developers who need to ship fast 

   create-page.ts

 ```
<span class="eh-tok-gray">1</span>  <span class="eh-tok-purple">import</span> { GravClient } <span class="eh-tok-purple">from</span> <span class="eh-tok-green">'@grav/sdk'</span>;
<span class="eh-tok-gray">2</span>
<span class="eh-tok-gray">3</span>  <span class="eh-tok-purple">const</span> grav = <span class="eh-tok-purple">new</span> <span class="eh-tok-blue">GravClient</span>({
<span class="eh-tok-gray">4</span>    baseUrl: <span class="eh-tok-green">'https://site.com/api/v1'</span>,
<span class="eh-tok-gray">5</span>    token:   process.env.<span class="eh-tok-amber">GRAV_TOKEN</span>!,
<span class="eh-tok-gray">6</span>  });
<span class="eh-tok-gray">7</span>
<span class="eh-tok-gray">8</span>  <span class="eh-tok-gray">// Create a new blog post</span>
<span class="eh-tok-gray">9</span>  <span class="eh-tok-purple">await</span> grav.pages.<span class="eh-tok-blue">create</span>({
<span class="eh-tok-gray">10</span>   route:    <span class="eh-tok-green">'/blog/grav-2-is-here'</span>,
<span class="eh-tok-gray">11</span>   template: <span class="eh-tok-green">'item'</span>,
<span class="eh-tok-gray">12</span>   header:   { title: <span class="eh-tok-green">'Grav 2 is here'</span> },
<span class="eh-tok-gray">13</span>   content:  <span class="eh-tok-green">'# Ship it. 🚀'</span>,
<span class="eh-tok-gray">14</span> });
<span class="eh-tok-gray">15</span>
<span class="eh-tok-gray">16</span> <span class="eh-tok-gray">// Same endpoint the admin — and MCP — uses</span>
```

Grav 2 runs on a **completely modern stack**: PHP 8.3+, Symfony 7, Twig 3, all on their latest stable releases. Clean PHP throughout, and a forward-compatible foundation for PHP 8.4 and 8.5.

Every operation in the admin is a call against the [first-party API](https://getgrav.org/blog/grav-2-api): the same API your code, your CI pipeline, and your agents talk to. Headless when you want it, monolithic when you don’t.

 PHP 8.3+ Twig 3 Symfony 7 Composer 2 Markdown YAML 

Batteries included

##  Everything you need, built in 

API

### First-Party API

REST endpoints with proper auth, respecting Grav’s permission model. Plugin-extensible out of the box.

AGENTIC

### Built-in MCP Server

Same API, same permissions. Agentic AI gets the same access as a human admin, with no sidecar.

ADMIN

### Admin 2.0 SPA

SvelteKit 5 + Vite + Tailwind 4. Instant navigation, modern UX, every existing blueprint just works.

SPEED

### Sub-100ms Pages

Aggressive caching plus PHP 8.3+ runtime gains delivers page renders in under a blink.

FLAT-FILE

### No Database

Your content is a folder of files. Git-version it, rsync it, move it anywhere. Zero lock-in.

SECURE

### Modern Security

Zero SQL surface. Latest Symfony & Twig with all upstream hardening. API authn designed for 2026.

DISCOVERY

### Full-Text Search

SimpleSearch out of the box, YetiSearch Pro for production. No Elasticsearch required.

GLOBAL

### Multi-Language Ready

Built-in internationalization. Ship the same content in every language you need.

MEDIA

### Automatic Image Pipeline

Resize, crop, and optimize with a fluent API. Responsive images on autopilot.

Built for docs

##  A first-class platform for documentation 

Flat-file + Markdown + Git is the perfect foundation for technical docs. Pair it with **Helios** and you have a world-class documentation stack.

Your docs live as **plain Markdown**, version-controlled alongside your code. No database round-trips mean pages render in under 100ms. And with the Grav 2 API, your docs become *automatable*: regenerate from source, ship on CI, publish from agents.

**Helios** is the premium documentation theme from the Grav team. Three-column layout with scroll-spy TOC, built on Tailwind 4 and Alpine.js, with folder-based versioning and 200+ languages of syntax highlighting out of the box.

Three-column layout

Sidebar nav + content + on-page TOC.

Folder-based versioning

Smart detection & switching.

Cmd+K search

SimpleSearch or YetiSearch Pro.

200+ language highlighting

70+ themes. Line numbers, diffs, focus mode.

Dark & light modes

With 5 color presets + custom.

Docs components

Callouts, cards, steps, tabs, file trees.

THE THEME

Helios

$50

Helios theme & lifetime updates.

[THE THEME Helios $50 Helios theme & lifetime updates.](https://getgrav.org/premium/helios)

 RecommendedTEAM BUNDLE

Helios Publisher

$140

Helios + Editor Pro + Revisions Pro. **Save $35**.

[Recommended TEAM BUNDLE Helios Publisher $140 Helios + Editor Pro + Revisions P…](https://getgrav.org/premium/helios-publisher-bundle)

ENTERPRISE BUNDLE

Helios Publisher Pro

$200

Everything in Publisher, plus YetiSearch Pro. **Save $50**.

[ENTERPRISE BUNDLE Helios Publisher Pro $200 Everything in Publisher, plus YetiS…](https://getgrav.org/premium/helios-publisher-pro-bundle)

 [ Explore Helios → ](https://getgrav.org/premium/helios) [ See publisher bundles ](https://getgrav.org/premium) 

   Premium  

##  Power up your site with Grav Premium 

Production-ready plugins and themes from the Grav team. One license, unlimited updates, lifetime support.

AI Translate

One-click multi-language translation of your content.

[AI Translate One-click multi-language translation of your content.](https://getgrav.org/premium/ai-translate)

AI Pro

AI assist built right into the admin: write, edit, summarize.

[AI Pro AI assist built right into the admin: write, edit, summarize.](https://getgrav.org/premium/ai-pro)

YetiSearch Pro

Fuzzy full-text search for docs, blogs, and knowledge bases.

[YetiSearch Pro Fuzzy full-text search for docs, blogs, and knowledge bases.](https://getgrav.org/premium/yetisearch-pro)

SEO Magic

Site-wide SEO report, keyword tools, broken-link checker.

[SEO Magic Site-wide SEO report, keyword tools, broken-link checker.](https://getgrav.org/premium/seo-magic)

Editor Pro

Next-gen WYSIWYG Markdown editor with live preview.

[Editor Pro Next-gen WYSIWYG Markdown editor with live preview.](https://getgrav.org/premium/editor-pro)

Revisions Pro

Full revision history, diffs, and one-click rollback.

[Revisions Pro Full revision history, diffs, and one-click rollback.](https://getgrav.org/premium/revisions-pro)

 [ Browse all premium → ](https://getgrav.org/premium) 

Why Grav

##  Why teams stick with Grav 

01

### API-first

Everything the admin can do, your code can do too. Headless, CI-driven, plugin-extensible: one API for all of it.

02

### Agent-ready

The first-party MCP server gives agentic AI the same access as a human admin. Zero extra wiring, same permission model.

03

### Modern stack

PHP 8.3+, Symfony 7, Twig 3; all on their latest stable releases. Forward-compatible foundation for the next decade of PHP.

04

### Zero lock-in

Your content is plain Markdown. Move it anywhere. Turn it into a static site. Generate an ebook. Export is never a migration.

Community

## Built with the community

Thousands of developers around the world building, extending, and contributing, now shipping **Grav 2** together.

15,721

GitHub stars

5,772

Twitter followers

202

Discord members

12

Years of Grav

Star on GitHub

getgrav/grav

[Star on GitHub getgrav/grav](https://github.com/getgrav/grav)

Join the Discord

202 members online

[Join the Discord 202 members online](https://chat.getgrav.org)

Visit the Forum

10k+ threads

[Visit the Forum 10k+ threads](https://discourse.getgrav.org)

Versatile by design

##  One CMS, any kind of site 

Personal blogs, company sites, large documentation hubs, and everything in between. If you can structure it in folders, you can build it with Grav.

   Blogs    Business Sites    Directories  [  Documentation ](https://getgrav.org/premium/helios)   Landing Pages    Portfolios    Product Sites  [  Docs Sites ](https://getgrav.org/premium/helios) 

   Professional services  

##  Hire Trilby Media, the team behind Grav 

Trilby Media builds and maintains Grav. We also build **with** it: custom sites, custom plugins, support contracts, and managed hosting, straight from the people who write the CMS.

Custom Development

Full site builds, migrations off WordPress or Drupal, and integrations with the systems you already run.

Custom Plugins & Themes

Need Grav to do something it doesn’t do yet? We write the plugin or theme, and you own the code.

Support Packages

Direct access to the core team with response times you can hold us to, instead of waiting your turn in a forum thread.

Managed Hosting

Fully managed Grav hosting. Updates, backups, and monitoring are handled, so you can leave the server alone.

 [ Explore services → ](https://getgrav.org/services) [  Visit Trilby Media ](https://trilby.media) 

Built with Grav

##  In good company 

Organizations that have shipped sites, docs, and campaigns on Grav.

 ![Microsoft](https://getgrav.org/user/pages/01.tour/12._built-with/microsoft.svg?g-4acd4937 "Microsoft") ![Xbox](https://getgrav.org/user/pages/01.tour/12._built-with/xbox.svg?g-4acd4937 "Xbox") ![Cisco](https://getgrav.org/user/pages/01.tour/12._built-with/cisco.svg?g-4acd4937 "Cisco") ![USDA](https://getgrav.org/user/pages/01.tour/12._built-with/usda.svg?g-4acd4937 "USDA") ![Adyen](https://getgrav.org/user/pages/01.tour/12._built-with/adyen.png?g-4acd4937 "Adyen") ![EMBL](https://getgrav.org/user/pages/01.tour/12._built-with/embl.png?g-4acd4937 "EMBL") ![Triumph](https://getgrav.org/user/pages/01.tour/12._built-with/triumph.svg?g-4acd4937 "Triumph") ![Mixer](https://getgrav.org/user/pages/01.tour/12._built-with/mixer.svg?g-4acd4937 "Mixer") ![Flowplayer](https://getgrav.org/user/pages/01.tour/12._built-with/flowplayer.png?g-4acd4937 "Flowplayer") ![Pixelworks](https://getgrav.org/user/pages/01.tour/12._built-with/pixelworks.svg?g-4acd4937 "Pixelworks") 

Ready to ship?

##  Ship with Grav 2 today 

Download, unzip, and you’re live: a flat-file CMS with a modern admin and a first-party API out of the box. Add the MCP server with one click when you’re ready for agents.

 [  Download Grav 2 → ](https://getgrav.org/downloads) [  Migrate from 1.7 ](https://getgrav.org/migrate-to-2)

---

## Navigation

- Next: [Grav 2 - Features](https://getgrav.org/features.md)
