Claude Desktop Integration
This document details how to integrate Foggy MCP Service with Claude Desktop.
Configuration File Location
Claude Desktop MCP configuration file is located at:
| OS | Configuration File Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Basic Configuration
Minimal Configuration
json
{
"mcpServers": {
"foggy-dataset": {
"url": "http://localhost:7108/mcp/analyst/rpc"
}
}
}Full Configuration Example
json
{
"mcpServers": {
"foggy-dataset": {
"url": "http://localhost:7108/mcp/analyst/rpc",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}Endpoint Selection
Choose different endpoints based on use case:
| Endpoint | Target Users | Available Tools |
|---|---|---|
/mcp/analyst/rpc | Data Analysts | Metadata, Query, Charts (Recommended) |
/mcp/admin/rpc | Administrators | All tools |
/mcp/business/rpc | Business Users | Natural language query only |
Analyst Endpoint (Recommended)
Suitable for professional users who need precise query control:
json
{
"mcpServers": {
"foggy-dataset": {
"url": "http://localhost:7108/mcp/analyst/rpc"
}
}
}Business Endpoint
Suitable for non-technical users who only need to describe requirements in natural language:
json
{
"mcpServers": {
"foggy-dataset": {
"url": "http://localhost:7108/mcp/business/rpc"
}
}
}Apply Configuration
- Save configuration file
- Completely quit Claude Desktop (not just close window)
- macOS: Right-click Dock icon → Quit
- Windows: Right-click system tray icon → Exit
- Restart Claude Desktop
Verify Connection
After starting Claude Desktop, verify with:
- Type in chat:
What semantic layer models are available? - Claude should call the
dataset.get_metadatatool and return model list
If Claude cannot recognize MCP tools, check:
- Configuration file JSON format is correct
- MCP service is running
- URL is accessible
Usage Examples
Query Metadata
List all available semantic layer models and fieldsExecute Query
Query sales data for the last week, summarize amount by product categoryGenerate Charts
Generate sales trend chart for the last 30 daysMulti-Service Configuration
You can configure multiple MCP services simultaneously:
json
{
"mcpServers": {
"foggy-sales": {
"url": "http://localhost:7108/mcp/analyst/rpc"
},
"foggy-inventory": {
"url": "http://inventory-server:7108/mcp/analyst/rpc"
}
}
}Remote Server Configuration
If MCP service is deployed on a remote server:
json
{
"mcpServers": {
"foggy-dataset": {
"url": "https://mcp.example.com/mcp/analyst/rpc",
"headers": {
"Authorization": "Bearer your-api-token"
}
}
}
}Troubleshooting
Configuration Not Taking Effect
- Confirm configuration file path is correct
- Use JSON validation tool to check format
- Completely quit and restart Claude Desktop
Connection Failed
bash
# Test if service is accessible
curl http://localhost:7108/actuator/health
# Test MCP endpoint
curl -X POST http://localhost:7108/mcp/analyst/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"1","method":"ping","params":{}}'Tool Call Failed
View MCP service logs:
bash
# Docker environment
docker-compose logs -f mcp
# Local development
tail -f logs/mcp.logNext Steps
- Cursor Integration - Use in Cursor
- API Usage - Direct MCP API calls
- Tools List - View all available tools
