GravityKit Developer Docs MCP
Connect the GravityKit developer-docs MCP to your AI coding assistant so it answers GravityKit coding questions from the real source: hooks, the PHP API, version and compatibility data, and GravityView 3.0 CSS design tokens. It is free, hosted, and needs no API key.
Why connect it #
AI coding assistants are fast, but they often guess at plugin internals or rely on signatures from an older version. With this connected, your assistant looks it up instead: the real hook, its parameters, the version it shipped in, and a working example. You get code you can paste, not code you have to double-check.
What you can ask #
Once connected, ask your assistant things like:
- Find a GravityView filter for changing a field’s value, and show its parameters and an example.
- Which version added a hook, and is it available on my GravityView 2.x site?
- List the GravityView CSS design tokens for buttons and their default values.
- Write a snippet that uses a specific hook to customize a View.
For example, ask it to customize a View’s CSS and it returns the real filter gk/gravityview/theme/custom-css, its parameters ($custom_css, $view), and a ready snippet:
add_filter( 'gk/gravityview/theme/custom-css', function( $custom_css, $view ) {
// Modify $custom_css as needed
return $custom_css;
}, 10, 2 );Read here how to add these code samples to your website: Where to put code samples.
Connect it #
Claude Code
claude mcp add --transport http gravitykit-docs https://mcp.gravitykit.dev/Cursor, VS Code, and other MCP clients
Add this to your MCP configuration:
{
"mcpServers": {
"gravitykit-docs": { "url": "https://mcp.gravitykit.dev/" }
}
}Note: No API key is required. The server is read-only and connects anonymously. To turn off usage analytics, send the X-GK-Analytics-Opt-Out: 1 header.
Tips for good results #
- Name the product (for example, GravityView) so it scopes the lookup.
- Ask it to cite the hook and the version it used, so you can verify before shipping.
- For theming, ask for the GravityView 3.0 CSS design token instead of guessing a class name.
Related resources #
- GravityKit MCP: manage Gravity Forms with an AI assistant. Create and edit forms, manage entries, and handle notifications and exports through natural language.
- Block MCP: let AI agents edit individual blocks in your posts and pages without breaking the layout.
- GravityKit developer docs: browse the same hooks and API in your browser.
