Fast flat-file CMS in PHP with Markdown, an API and an MCP server
open sourceMITself-hostablefreeMCP
Grav is an open source (MIT) flat-file CMS written in PHP, built on Twig and Symfony components: pages are Markdown files with YAML front matter, there's no database, and a site is installed by unzipping it and kept in Git. Grav 2 adds a first-party REST API that respects Grav's permissions and can be extended by plugins, an MCP server for AI agents on the same API, and Admin 2.0, a single-page admin built on SvelteKit with a customizable dashboard and real-time collaborative editing. It supports multiple languages, themes and skeletons, and hundreds of plugins; premium plugins and themes, and Grav Guard for keeping many sites updated, are sold by its maker, Trilby Media.
Problems it solves
- a simple CMS for a small website without a database
- edit website pages as Markdown files I can keep in Git
- a fast PHP CMS that installs by unzipping on shared hosting
- a CMS with a REST API and an MCP server so an AI agent can edit content
Features
- flat-file Markdown and YAML content, no database
- Twig themes and skeletons
- plugin system
- multi-language
- first-party REST API
- MCP server
- Admin 2.0 SPA with real-time collaborative editing
- Git-friendly
Capabilities
| Has an API | plan not known |
|---|---|
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what Grav does.
- Statamic Build sites you're proud of, with a CMS you actually like
- Kirby A file-based CMS that adapts to you
- WordPress Web publishing software you can use to create a website, blog, or app
- CloudCannon Visual editing for your team on the stack AI already knows
- TinaCMS An open-source, headless CMS with built-in Git version control
- Pages CMS The simplest CMS you'll ever need
