Overview
Claude Desktop is Anthropic’s desktop AI assistant that supports MCP (Machine-Consumable Protocol) tools. Connect your Pylar tools to Claude Desktop to give Claude access to your data through governed views.Prerequisites
- ✅ Claude Desktop app installed on your computer
- ✅ Pylar project with published MCP tools
- ✅ MCP HTTP Stream URL and Bearer Token from Pylar
Step 1: Get Your Pylar Credentials
- In Pylar, navigate to your project
- Click “Publish” in the right sidebar
- Generate your token if needed
- Copy both:
- MCP HTTP Stream URL:
https://mcp.publish.pylar.ai/mcp - Authorization Bearer Token: Your unique token
- MCP HTTP Stream URL:
Keep your Bearer Token secure. It provides access to your published tools.
Step 2: Open Claude Desktop Settings
- Open the Claude Desktop app
- Go to Settings → Developer
- Click “Edit Config”
claude_desktop_config.json file on your system.
Step 3: Add Pylar MCP Server Configuration
Add the following configuration to theclaude_desktop_config.json file:
- Replace
xxxxxwith your actual Bearer Token from Pylar - The name
"view-mcp-node"is a local alias—you can rename it to anything you prefer - Save the file after making changes
If the “headers” key is unsupported in your Claude Desktop build, you may need to omit it and use a proxy or environment variable instead. Check your Claude Desktop version for MCP support.
Step 4: Restart Claude Desktop
- Save the
claude_desktop_config.jsonfile - Restart Claude Desktop completely
- Claude Desktop will connect to your Pylar MCP server on startup
Step 5: Test the Connection
- Open a new conversation in Claude Desktop
- Ask Claude a question that requires using your MCP tool
- Recognize it needs to use your Pylar MCP tool
- Call the tool with appropriate parameters
- Execute the query against your view
- Return the results and use them to answer your question
If Claude can successfully use your tools to answer questions, the connection is working correctly!
Using Your Tools
Once connected, you can ask Claude to use your Pylar tools in natural language:- “Get customer revenue data for the last quarter”
- “Show me engagement scores for purchase events”
- “What’s the average order value for customers in North America?”
- Identify which tool to use
- Call the tool with the right parameters
- Return formatted results
- Use the data to provide comprehensive answers
Troubleshooting
Issue: Claude can’t see tools
Solutions:- Verify Bearer Token is correct (no extra spaces)
- Ensure token format:
Bearer YOUR_TOKEN(replace YOUR_TOKEN with actual token) - Check that tools are published in Pylar
- Restart Claude Desktop completely
- Verify the JSON syntax in the config file is valid
Issue: “Connection failed” error
Solutions:- Verify MCP HTTP Stream URL is correct:
https://mcp.publish.pylar.ai/mcp - Check network connectivity
- Ensure Bearer Token is valid and not expired
- Regenerate token in Pylar if needed
- Check Claude Desktop version supports MCP headers
Issue: Tools return errors
Solutions:- Check Evals in Pylar to see detailed error information
- Verify view queries are correct
- Test tools in Pylar before using in Claude
- Review tool parameters and ensure they’re being passed correctly
Issue: Headers not supported
If your Claude Desktop build doesn’t support headers in the config: Alternative Solutions:- Use a proxy server to add authentication headers
- Set authentication via environment variables (if supported)
- Check for Claude Desktop updates that add header support
Benefits
By connecting Claude Desktop to Pylar:- ✅ Secure Access: Claude only accesses data through your governed views
- ✅ Natural Language: Ask Claude questions in plain English
- ✅ Centralized Control: Update views in Pylar, Claude gets updates automatically
- ✅ Full Visibility: Monitor Claude’s usage through Pylar Evals
- ✅ No Code: No need to write integration code
- ✅ Real-time Updates: Changes to views and tools reflect immediately
Next Steps
- Publishing Tools - Learn how to publish your tools
- Evals - Monitor how Claude uses your tools
- Other Agent Builders - Connect to other platforms
Monitor Usage
See how Claude interacts with your tools through Evals