What is MCP?
The Model Context Protocol (MCP) is a standard for connecting AI models to external data sources. PrefID provides an MCP server that lets you access user preferences directly from Claude Desktop, Cursor, and other MCP-compatible tools.Quick Setup for Claude Desktop
1
Install the MCP Server
2
Configure Claude Desktop
Add to your Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.json):3
Restart Claude Desktop
Restart Claude Desktop to load the MCP server.
Available Tools
Once configured, Claude can use these PrefID tools:get_preferences
Fetch user preferences for a specific domain.
get_agent_hints
Get optimized hints for context injection.
search_preferences
Search across all preference domains.
Cursor Setup
For Cursor IDE, add to your.cursor/mcp.json:
Self-Hosted MCP Server
Run your own MCP server:MCP Server Configuration
Environment variables:| Variable | Description | Required |
|---|---|---|
PREFID_API_KEY | Your PrefID API key | Yes |
PREFID_USER_ID | Default user ID | No |
PREFID_BASE_URL | Custom API URL | No |
Example Conversations
With Claude Desktop
User: “Recommend me some songs for my morning commute” Claude: Uses get_preferences tool for music_preferences “Based on your preferences for AR Rahman and Indian classical music, here are some morning commute songs:- ‘Jai Ho’ - AR Rahman
- ‘Tum Hi Ho’ - Arijit Singh …”
With Cursor
User: “Refactor this code to match my coding style” Cursor: Uses get_preferences tool for coding_profile “Based on your coding preferences (TypeScript, functional style, Prettier formatting), here’s the refactored code…”Building Custom MCP Tools
Create your own MCP tools that use PrefID:Troubleshooting
MCP server not connecting
MCP server not connecting
- Check that the server is running:
npx @prefid/mcp-server --test - Verify your API key is correct
- Restart Claude Desktop / Cursor
Tools not appearing
Tools not appearing
- Check Claude Desktop logs:
~/Library/Logs/Claude/ - Verify config JSON syntax is valid
- Ensure MCP server is in PATH
Permission errors
Permission errors
- Verify your API key has the required scopes
- Check that the user has granted access