How to Use the Cosmic MCP in Windsurf
Let Cascade build, modify, and purge Cosmic CMS content directly from your Windsurf editor without writing API boilerplate.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cosmic MCP to Windsurf
Create your Vinkius account to connect Cosmic to Windsurf and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Edit live CMS content with Windsurf Cascade
`patch_cms_object` lets Cascade modify live drafts inside your bucket by targeting specific document IDs. When you tell Cascade to update a pricing table or fix a typo, it drafts the changes and executes the patch without forcing you to log into the web dashboard. You can also use `create_cms_object` to spin up brand new drafts on the fly. Cascade handles the JSON structure and pushes the new node directly into your headless environment, making content staging a background task.
Inspect bucket schemas and media assets
`get_schema_details` extracts the exact property fields from your active content models so Cascade understands your data shape. Cascade inspects these rules before writing updates, ensuring every field matches your validation requirements. To handle images, Cascade uses `get_media_asset` and `list_uploaded_media` to check your asset library. It tracks down specific image IDs and verifies file dimensions so you never link a broken image to your homepage.
Clean up deprecated content nodes
`wipe_cms_object` permanently deletes specific document rows from your active Cosmic bucket. When a marketing campaign ends, Cascade identifies the stale nodes and drops them from your live schema to keep your API payloads clean. This cleanup process also triggers `wipe_media_asset` to purge unused files from the disk. Cascade checks for dangling media links and removes the orphaned files to prevent your cloud storage costs from ballooning.
Set up Cosmic MCP in Windsurf
Prerequisites
- Windsurf IDE installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP configuration
Click the Cascade assistant icon in the sidebar, then click the hammer icon (🔨) at the top of the panel. Select "Configure" to open
~/.codeium/windsurf/mcp_config.json. - 2
Add the Cosmic MCP
Paste the JSON snippet shown on the right into the
mcpServersobject. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Refresh MCPs
Go back to the hammer icon (🔨) in Cascade and click "Refresh". Windsurf will detect the new server. No full restart is needed — the connection is hot-reloaded.
- 4
Verify in Cascade
Start a new Cascade conversation and ask something like "Show my Cosmic payment history." If connected, Cascade will call the Cosmic tools directly. You will see a green dot next to the server name in the MCP panel.
{
"mcpServers": {
"cosmic-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Cosmic. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Cosmic MCP in Windsurf
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cosmic MCP today
We host it, we monitor it, we maintain it. You just paste one token.