Git-based CMS for static sites.
## Forestry MCP Server: Git-Based CMS for Static Sites The **Forestry MCP Server** integrates Forestry.io into Google Antigravity, enabling Git-based content management with markdown editing, instant previews, and static site generator support directly from your development environment. ### Why Forestry MCP? - **Git-Backed**: All content stored in your Git repository - **Markdown Native**: First-class markdown editing experience - **Instant Preview**: See changes before committing - **SSG Support**: Works with Hugo, Jekyll, Gatsby, Next.js, and more - **Media Management**: Cloudinary and S3 integration for assets ### Key Features #### 1. Content Operations ```python # Get documents docs = await mcp.get_documents( section="posts", status="published" ) for doc in docs: print(f"Title: {doc['frontmatter']['title']}") print(f"Date: {doc['frontmatter']['date']}") # Get single document doc = await mcp.get_document( section="posts", path="2024-01-15-my-post.md" ) ``` #### 2. Document Management ```python # Create document doc = await mcp.create_document( section="posts", frontmatter={ "title": "New Post", "date": "2024-01-15", "draft": True, "author": "John Doe" }, body="Post content in **markdown**..." ) # Update document await mcp.update_document( section="posts", path="new-post.md", frontmatter={"draft": False} ) ``` #### 3. Media Operations ```python # Upload media media = await mcp.upload_media( file_path="./images/cover.jpg", path="/uploads/2024/01/" ) # List media files = await mcp.list_media(path="/uploads/") for file in files: print(f"File: {file['filename']} - {file['url']}") ``` #### 4. Site Operations ```python # Trigger rebuild build = await mcp.trigger_build() print(f"Build status: {build['status']}") # Get site info site = await mcp.get_site() print(f"Site: {site['name']}") print(f"Generator: {site['generator']}") ``` ### Configuration ```json { "mcpServers": { "forestry": { "command": "npx", "args": ["-y", "@anthropic/mcp-forestry"], "env": { "FORESTRY_API_TOKEN": "your-api-token", "FORESTRY_SITE_ID": "your-site-id" } } } } ``` ### Use Cases **Technical Blogs**: Manage developer blogs with markdown content and code highlighting. **Documentation Sites**: Maintain docs with Git-based version control. **Marketing Sites**: Enable marketers to edit content without touching code. **JAMstack Projects**: Power static sites with dynamic content editing. The Forestry MCP enables Git-based content management within your development environment.
{
"mcpServers": {
"forestry": {}
}
}