Getting Your API Key
- Go to Settings > API Keys in your organization settings (requires admin access)
- Click Create API Key and enter a name
- Copy the key immediately - it's only shown once
- Keys have a
pstl_prefix (e.g.,pstl_abc123...)
The creation dialog also shows ready-to-copy MCP config snippets for different clients.
Alternatively, running the OAuth setup command below will open your browser and guide you through the authentication flow.
Setup Guides
General
Our MCP server supports Streamable HTTP transport with OAuth 2.1 and API key authentication:
| Property | Value |
|---|---|
| Server URL | https://www.postel.app/api/mcp |
| Transport | Streamable HTTP |
| Authentication | OAuth 2.1 or API key (Bearer token) |
Claude Code
With OAuth (recommended):
claude mcp add postel --transport http --url "https://www.postel.app/api/mcp"
Then run /mcp once you've opened a Claude Code session to go through the browser-based OAuth flow.
With API Key:
Add to your ~/.claude/settings.json or project .mcp.json:
{
"mcpServers": {
"postel": {
"type": "url",
"url": "https://www.postel.app/api/mcp",
"headers": {
"Authorization": "Bearer pstl_YOUR_API_KEY"
}
}
}
}
Scope Options:
--scope user- Available in all your projects--scope project- Shared with your team via.mcp.json- Default (no flag) - Current project only
Cursor
To add the MCP to Cursor:
- Open File > Preferences > Cursor Settings > MCP
- Or press
Cmd+Shift+P(Mac) /Ctrl+Shift+P(Windows/Linux) and type "View: Open MCP Settings" - Add the following configuration:
{
"mcpServers": {
"postel": {
"type": "url",
"url": "https://www.postel.app/api/mcp",
"headers": {
"Authorization": "Bearer pstl_YOUR_API_KEY"
}
}
}
}
Visual Studio Code
Ctrl/Cmd+P and search for MCP: Add Server.
Select HTTP and enter the following configuration:
{
"mcpServers": {
"postel": {
"type": "url",
"url": "https://www.postel.app/api/mcp",
"headers": {
"Authorization": "Bearer pstl_YOUR_API_KEY"
}
}
}
}
Activate the server using MCP: List Servers, selecting Postel, and selecting Start Server.
Windsurf
Open Windsurf Settings and navigate to Cascade > MCP.
Click Add Server and paste the following configuration:
{
"mcpServers": {
"postel": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://www.postel.app/api/mcp"],
"env": {
"MCP_API_KEY": "pstl_YOUR_API_KEY"
}
}
}
}
Note: Windsurf uses mcp-remote to connect to HTTP MCP servers. The API key is passed via environment variable.
Others
Many other tools now support MCP servers. You can configure them to use Postel's MCP server with the following settings:
| Property | Value |
|---|---|
| Server URL | https://www.postel.app/api/mcp |
| Transport | Streamable HTTP |
| Authentication | Bearer token (Authorization: Bearer pstl_YOUR_API_KEY) |
Capabilities
The Postel MCP server exposes 15 tools across three categories.
Post Management (7 tools)
| Tool | Description |
|---|---|
list-posts | Get all posts with optional status filter |
get-post | Get a specific post by ID |
create-post | Create a new post draft |
update-post | Edit an existing post |
delete-post | Remove a post |
schedule-post | Schedule a post for a specific time |
publish-post | Publish a post immediately |
AI Generation (3 tools)
| Tool | Description |
|---|---|
generate-post | Generate a new post using AI based on your brand voice |
refine-post | Improve an existing draft with AI suggestions |
search-viral-tweets | Find viral tweets for inspiration |
Data and Context (5 tools)
| Tool | Description |
|---|---|
list-brands | Get all your brand profiles |
get-brand-sources | Get content sources for a brand |
get-x-profiles | Get connected X/Twitter profiles |
get-schedule | Get your posting schedule |
get-usage | Check your usage and limits |
