Overview
The Ordinal API exposes an MCP (Model Context Protocol) server that allows AI tools to interact directly with your Ordinal workspace. This enables AI assistants to create posts, manage profiles, retrieve analytics, and more on your behalf.MCP Server URL
Prerequisites
Before connecting to the MCP server, you’ll need an API key. See the Authentication guide for details on generating an API key.Install
Select a method below to install the server. After installation, you’ll need to replaceYOUR_API_KEY with your actual API key.
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Gemini CLI
- Codex CLI
Add to Cursor
One-click install for Cursor IDE
Bearer YOUR_API_KEYOr manually configure by opening the command palette (Cmd+Shift+P / Ctrl+Shift+P), searching for “Open MCP settings”, and adding:Available Capabilities
Once connected, the MCP server provides AI tools with access to your Ordinal workspace:Posts
Create, list, retrieve, and delete posts
Profiles
Access connected social profiles
Analytics
Retrieve post and follower analytics
Labels
Manage labels for organizing posts
Approvals
Handle approval workflows
Engagements
Configure auto-engagements
Security
- Environment Variables: Consider storing your API key in an environment variable and referencing it in your MCP config
- Workspace Scope: API keys are scoped to a single workspace
- Revocation: If compromised, revoke your API key immediately in workspace settings
Troubleshooting
Connection Failed
Connection Failed
- Verify your API key is correct and hasn’t been revoked
- Ensure the URL is exactly
https://app.tryordinal.com/api/mcp
Authentication Errors
Authentication Errors
- Confirm the
Authorizationheader format isBearer YOUR_API_KEY - Check for extra spaces or missing characters in your API key
- Try generating a new API key
Tools Not Appearing
Tools Not Appearing
- Restart your AI tool after configuring the MCP server
- Check for JSON syntax errors in your configuration file
- Verify the server name matches what you configured