Enables management and execution of prompts on Latitude.so that use OpenAI models, including creating projects, versioning prompts, pushing content from local files, and running AI conversations with OpenAI providers.
π§ Quick Navigation
β‘ Get Started β’ β¨ Features β’ π οΈ Tools β’ π Resources β’ π» CLI
latitude-mcp-server gives your AI assistant superpowers for managing prompts on Latitude.so. Instead of switching between your IDE, Latitude dashboard, and AI chat, your AI can now create projects, version prompts, push content from local files, and even run prompts directly.
How it works:
You: "Push my local prompt file to Latitude draft"
AI: Reads file, extracts prompt path from filename, pushes to your project
You: "Now run it with these parameters"
AI: Executes prompt, streams response, maintains conversation
Result: Full prompt lifecycle without leaving your IDE
π₯ Why This Beats Manual Management
Managing prompts manually is a context-switching nightmare. This MCP server makes traditional workflows look ancient.
We're not just wrapping an API. We're enabling AI-native prompt development with file-based workflows, automatic path derivation, and streaming execution.
π Get Started in 60 Seconds
1. Get Your API Key
Go to app.latitude.so/settings
Create or copy your API key
That's it β one key, all features unlocked
2. Configure Your MCP Client
Client | Config Location | Docs |
π₯οΈ Claude Desktop |
| |
β¨οΈ Claude Code |
or CLI | |
π― Cursor |
| |
π Windsurf | MCP settings |
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code (CLI)
One command setup:
Or manually add to ~/.claude.json:
Cursor/Windsurf
Add to .cursor/mcp.json or MCP settings:
β¨ Pro Tip: The server outputs in TOON format by default β a token-efficient notation that uses 30-60% fewer tokens than JSON, keeping your LLM context lean.
β¨ Feature Breakdown
Feature | What It Does | Why You Care |
π Projects
| Manage Latitude projects | Organize prompts by use case |
π Versions
| Git-like version control | Safe iteration without breaking prod |
π Prompts
| Create, read, update prompts | Complete prompt lifecycle |
π File Push
| Push prompts from local files | IDE-native workflow |
π€ Execution
| Execute prompts with params | Test directly from AI |
π Logs
| View execution history | Debug and optimize |
π Streaming
| Stream AI responses | See results as they generate |
π οΈ Tool Reference
This server provides 16 MCP tools covering the complete Latitude API.
Project Tools
latitude_list_projects
List all projects in your Latitude workspace.
Returns: Array of projects with id, name, createdAt, updatedAt
latitude_create_project
Create a new project.
Parameter | Type | Required | Description |
|
| Yes | Project name |
Version Tools
latitude_list_versions
List all versions (commits) for a project.
Parameter | Type | Required | Description |
|
| Yes | Project ID |
latitude_get_version
Get details for a specific version.
Parameter | Type | Required | Description |
|
| Yes | Project ID |
|
| Yes | Version UUID |
latitude_create_version
Create a new draft version (branch).
Parameter | Type | Required | Description |
|
| Yes | Project ID |
|
| Yes | Version/commit name |
latitude_publish_version
Publish a draft version to make it live.
Parameter | Type | Required | Description |
|
| Yes | Project ID |
|
| Yes | Draft version UUID |
|
| No | Publication title |
|
| No | Publication notes |
Prompt Tools
latitude_list_prompts
List all prompts in a version.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| No |
| Version UUID |
latitude_get_prompt
Get a specific prompt by path.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| Yes | β | Prompt path (e.g.,
) |
|
| No |
| Version UUID |
latitude_push_prompt
Push prompt content to a draft version.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| Yes | β | Draft version UUID |
|
| Yes | β | Prompt path |
|
| Yes | β | Full prompt content with frontmatter |
|
| No |
| Overwrite if exists |
latitude_push_prompt_from_file β
Push a prompt directly from a local file. This is the killer feature for IDE workflows.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| Yes | β | Draft version UUID |
|
| Yes | β | Absolute path to prompt file |
|
| No | derived | Path in Latitude (auto-derived from filename) |
|
| No |
| Overwrite if exists |
Auto-derivation: If you push /path/to/my-prompt.md, it automatically becomes my-prompt in Latitude.
Supported extensions: .md, .promptl, .txt
Execution Tools
latitude_run_prompt
Execute a prompt and get AI response.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| Yes | β | Prompt path |
|
| No |
| Version UUID |
|
| No |
| Template variables |
|
| No | β | Additional user input |
|
| No |
| Enable streaming |
latitude_chat
Continue an existing conversation.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Conversation UUID |
|
| Yes | β | User message |
|
| No |
| Enable streaming |
latitude_get_conversation
Get full conversation history.
Parameter | Type | Required | Description |
|
| Yes | Conversation UUID |
Operations Tools
latitude_list_logs
Get execution logs for a prompt.
Parameter | Type | Required | Default | Description |
|
| Yes | β | Project ID |
|
| No | β | Filter by prompt UUID |
|
| No |
| Page number |
|
| No |
| Results per page |
latitude_create_log
Create a log entry for external executions.
Parameter | Type | Required | Description |
|
| Yes | Project ID |
|
| Yes | Prompt path |
|
| Yes | Conversation messages |
latitude_trigger_evaluation
Trigger an evaluation run for a prompt.
Parameter | Type | Required | Description |
|
| Yes | Project ID |
|
| Yes | Evaluation UUID |
π Resource Templates
Access Latitude data via MCP resources (read-only):
Resource URI | Description |
| List all projects |
| List versions for project |
| List prompts in version |
| Get specific prompt |
π» CLI Reference
The server also works as a standalone CLI tool:
Commands
Options
Flag | Description |
| Version UUID (default:
) |
| JSON parameters for run |
| Message for chat |
| Enable streaming |
|
or
(default:
) |
| Path to prompt file |
| Inline prompt content |
| Force overwrite |
π₯ Recommended Workflows
Local Development Flow
Prompt Audit Flow
Conversation Testing Flow
βοΈ Environment Variables
Variable | Required | Default | Description |
| Yes | β | Your Latitude API key |
| No |
| API base URL |
π₯ Common Issues & Quick Fixes
Problem | Solution |
"LATITUDE_API_KEY is required" | Set the env variable in your MCP config or shell |
"Head commit not found" | Project has no published version β use a specific
instead of
|
"Provider API Key not found" | Add your LLM provider key (OpenAI, Anthropic) in |
Push fails with "version is merged" | Can only push to draft versions β create a new draft first |
File push path wrong | The tool auto-derives from filename; use
param to override |
π οΈ Development
Built with π because managing prompts should be as easy as writing code.
ISC Β© YiΔit Konur