Lexicon is a macOS prompt library with a bundled MCP server that exposes your saved prompts to any AI agent. Search, retrieve, and execute templated prompts directly from Claude, Cursor, or Windsurf.
Copy this page's URL and paste it into your agent. It will fetch this page and walk you through installation using the machine-readable instructions below.
You are an AI coding agent. The user wants to install the Lexicon MCP server. Follow these steps exactly:
ls /Applications/Lexicon.app. If missing, tell the
user to install Lexicon from the Mac App Store before continuing.
ls "/Applications/Lexicon.app/Contents/MacOS/LexiconMCP".
If the binary is not at that path, check
/Applications/Lexicon.app/Contents/Resources/LexiconMCP
as a fallback and use whichever exists.
lexicon:
{
"command": "/Applications/Lexicon.app/Contents/MacOS/LexiconMCP",
"args": []
}
search_prompts, get_prompt_details,
create_prompt, update_prompt,
delete_prompt, execute_prompt. Call
search_prompts with an empty query to list all
prompts.
Lexicon stores your prompt library in a local SQLite database with templated variables, categories, and usage history. The MCP server lets an AI agent ask "do I have a prompt for X?" before making one up — and fills in variables on the fly.
claude_desktop_config.json:{
"mcpServers": {
"lexicon": {
"command": "/Applications/Lexicon.app/Contents/MacOS/LexiconMCP",
"args": []
}
}
}
lexicon should show as connected.claude mcp add lexicon /Applications/Lexicon.app/Contents/MacOS/LexiconMCP
Restart your Claude Code session and run /mcp.
~/.cursor/mcp.json directly with the JSON above.Any stdio-transport MCP client works. Point it at the binary path with empty args.
Search your library by query, category, or tags.
Fetch full prompt text, variables, and metadata by name.
Render a prompt with variable substitutions, ready to paste.
Save a new prompt with {{variable}} placeholders.
Edit an existing prompt's content, category, or variables.
Remove a prompt from the library by name.
Run find /Applications/Lexicon.app -name "LexiconMCP" -type f
to locate it, then update the command field.
Launch Lexicon once so the database gets created in the App Group container. The MCP server reads from the same store.
Run open /Applications/Lexicon.app/Contents/MacOS/LexiconMCP
once manually and approve the dialog.
Call get_prompt_details first to see the required
variable names, then pass them all in the arguments
object.