# Statamic MCP for AI Agents AI Agent Connect

> Statamic MCP lets you manage your Statamic CMS content directly through your AI agent. You can list entries from collections, fetch taxonomy terms, inspect global sets, and explore site navigation without leaving your chat interface. It connects your content to your agent for faster content auditing and site management.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_TYdyu4gPevs1GTdyQszP1GFqHfzyigrCSBY80c66/ai-agent-connect
- **Tags:** statamic, cms-api, flat-file, laravel, content-strategy

## Description

This Connector lets you manage your Statamic CMS content through plain English commands. Imagine you're halfway through a content audit and need to see how many blog posts are tagged under a specific category or check the global site variables for your production environment. Instead of logging into the CMS dashboard, switching tabs, and digging through menus, you just ask your agent. This connector bridges that gap, letting you query your collections, navigation trees, and user profiles without the manual clicking. It's about moving from tedious navigation to conversational commands. Whether you're a developer trying to understand the structure of a new collection or a content manager checking publication statuses, you can get the answers you need instantly. By bringing your CMS into your AI workflow via the Vinkius catalog, you turn your content into a searchable, interactive knowledge base that your agent can actually use to help you build and maintain your site. You can quickly verify that your taxonomy terms are organized correctly or see which users have administrative access in one go. This isn't about replacing your CMS; it's about making the data inside it accessible in the way you already work. You can pull up site-wide settings or browse through your media assets without ever leaving your primary workspace. It makes the way you interact with your CMS feel much more fluid and integrated into your existing routine.

## Tools

### get_user
Retrieve a single user profile. Use this to check administrative account details.

### get_asset
Fetch a specific asset from your CMS. This helps you quickly locate individual files or media.

### get_collection_tree
View the entry tree for structured collections. This is helpful for understanding how nested data is organized.

### get_entry
Retrieve the details of a single Statamic entry. You can use this to inspect specific content pieces quickly.

### get_form
Get the configuration of a single form. This lets you see what fields are required for user submissions.

### get_global
Fetch variables from a specific global set. This is useful for checking site-wide configuration data.

### get_nav_tree
Pull the navigation structure tree. This helps you map out your site's menu hierarchy.

### get_term
Get details for a specific taxonomy term. This is useful for checking category associations.

### list_assets
List all assets within a specific container. This helps you see the contents of your media folders.

### list_entries
List all entries in a specific collection. This allows you to browse content with pagination and filters.

### list_forms
List every form available on your site. This provides a bird's-eye view of all site interactions.

### list_globals
List all available global sets. This lets you see all global variables at a glance.

### list_terms
List all terms within a taxonomy. This is great for auditing your site's categorization.

### list_users
List all users on the site. Use this to manage and audit your administrative user base.

## Prompt Examples

**Prompt:** 
```
List the most recent 5 entries from the 'blog' collection.
```

**Response:** 
```
I've retrieved the latest 5 blog entries for you. Here they are:

| Title | Status |
| :--- | :--- |
| **New Features in v5** | Published |
| **Getting Started with MCP** | Published |
| **Site Architecture Guide** | Draft |
| **SEO Best Practices** | Published |
| **CMS Integration Tips** | Published |

Would you like me to pull the full content for any of these?
```

**Prompt:** 
```
Show me the navigation structure for the 'footer' menu.
```

**Response:** 
```
The 'footer' navigation tree contains the following items:

*   **Privacy Policy** (Entry ID: 452)
*   **Terms of Service** (Entry ID: 453)
*   **Contact Us** (Entry ID: 454)

Each item points to its respective entry in your site architecture.
```

**Prompt:** 
```
Get the details for the term 'tutorials' in the 'categories' taxonomy.
```

**Response:** 
```
I found the term **'tutorials'** in your categories taxonomy.

*   **Slug:** tutorials
*   **Associated Entries:** 12

This category is currently linked to 12 different pieces of content across your collections.
```

## Capabilities

### List collection entries
Retrieve entries from any collection with support for pagination and field filtering.

### Explore site navigation
Pull hierarchical trees for site menus and structured collections to map your architecture.

### Query taxonomy terms
Fetch specific terms and categories to organize content or audit your site's categorization.

### Fetch global variables
Access site-wide settings and configuration data stored in your global sets.

### Manage user profiles
List and inspect user profiles to manage administrative data and site interactions.

### Inspect form structures
Retrieve details on available forms to see what data your site is collecting.

### Retrieve assets
Get individual assets or list all media within a specific container.

## Use Cases

### Content Audit
A manager asks for all blog entries tagged as 'Tutorials' to check for missing meta tags using list_entries.

### Theme Development
A developer pulls the get_nav_tree to see how the footer menu is structured before writing the HTML.

### Site Config Check
An admin asks the agent to pull get_global variables to see the current production site name.

### SEO Audit
A specialist lists all terms in the 'Categories' taxonomy to find duplicate labels using list_terms.

## Benefits

- Stop tab-switching by querying your Statamic collections directly from your AI client.
- Quickly audit site navigation using get_nav_tree to ensure your menu hierarchy is correct.
- Verify global settings instantly with list_globals to avoid manual configuration errors.
- Speed up content audits by using list_entries with specific filters and pagination.
- Inspect complex data structures via get_collection_tree while you're developing frontends.
- Manage user access and form configurations using list_users and list_forms without opening the dashboard.

## How It Works

The bottom line is you get instant, conversational access to your Statamic CMS data from any compatible AI client.

1. Enable the Statamic REST API in your site's configuration.
2. Subscribe to this Connector on Vinkius and provide your Base URL and API Token.
3. Ask your AI client to list entries, check globals, or map out your navigation.

## Frequently Asked Questions

**Can I use the Statamic MCP to edit my blog posts?**
This Connector is designed for reading and inspecting content. You can use it to find, list, and audit your entries, but you should use the Statamic dashboard for making actual edits or creating new posts.

**How do I connect the Statamic MCP to my AI client?**
Once you subscribe on Vinkius, you'll get the connection details. You just need to provide your Statamic Base URL and an API Token in your AI client's settings to get started.

**Does the Statamic MCP work with flat-file sites?**
Yes, it works with both flat-file and database-driven Statamic sites as long as your REST API is enabled in your configuration.

**Can I use it to check my site's navigation?**
Absolutely. You can ask your agent to pull the navigation tree to see how your menus are structured, which is great for checking site architecture.

**Is the Statamic MCP good for SEO audits?**
It's perfect for audits. You can quickly query taxonomy terms, check global settings, and list collection entries to ensure your metadata is consistent across the site.

**What kind of content can I query with this Connector?**
You can query almost everything in your CMS, including entries, navigation trees, global variables, user profiles, forms, and media assets.

**Can I see the hierarchical structure of my site navigation?**
Yes. Use the `get_nav_tree` tool with the handle of your navigation (e.g., 'main'). The agent will return the full nested structure of your menu items.

**How do I fetch specific variables like the site name or social media links?**
You can use `list_globals` to see all available sets, then use `get_global` with the specific handle to retrieve all variables stored within that global set.

**Is it possible to filter entries when listing a collection?**
The `list_entries` tool supports `limit`, `sort`, and `fields` parameters, allowing you to paginate results and choose exactly which data fields the agent should process.