Configure the Anysite MCP Server for optimal performance
The Anysite MCP Server requires proper configuration to connect with your API credentials and customize tool behavior. This guide covers all configuration options available.
The MCP server uses a JSON configuration file that should be placed in your project directory or specified via environment variables.
Create a hdw-config.json file with the following structure:
{
"apiKey": "your-hdw-api-key",
"baseUrl": "https://api.anysite.io",
"defaultTimeout": 30000,
"retryAttempts": 3,
"enableLogging": true,
"logLevel": "info"
}
Your Anysite API access token. Get this from your dashboard.
The base URL for the Anysite API. Usually you don't need to change this.
Default timeout in milliseconds for API requests.
Number of retry attempts for failed API requests.
Enable or disable logging output.
Log level: debug, info, warn, error.
Alternatively, you can configure the MCP server using environment variables:
export HDW_API_KEY="your-hdw-api-key"
export HDW_BASE_URL="https://api.anysite.io"
export HDW_TIMEOUT="30000"
export HDW_RETRY_ATTEMPTS="3"
export HDW_LOG_LEVEL="info"
Environment variables take precedence over configuration file settings.
Configure LinkedIn-specific settings:
{
"tools": {
"linkedin": {
"maxResults": 50,
"includePrivateProfiles": false,
"searchDepth": "standard"
}
}
}
Configure Instagram-specific settings:
{
"tools": {
"instagram": {
"maxPosts": 100,
"includeStories": false,
"mediaQuality": "standard"
}
}
}
Configure rate limiting to stay within API limits:
{
"rateLimiting": {
"enabled": true,
"requestsPerMinute": 60,
"burstLimit": 10
}
}
To use the MCP server with Claude Desktop, add this configuration to your Claude config file:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hdw": {
"command": "node",
"args": ["/path/to/hdw-mcp-server/dist/index.js"],
"env": {
"HDW_API_KEY": "your-hdw-api-key"
}
}
}
}
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"hdw": {
"command": "node",
"args": ["C:\\path\\to\\hdw-mcp-server\\dist\\index.js"],
"env": {
"HDW_API_KEY": "your-hdw-api-key"
}
}
}
}
For Cursor IDE integration, add the MCP server to your workspace settings:
{
"mcp.servers": {
"hdw": {
"command": "node",
"args": ["./node_modules/@horizondatawave/mcp-server/dist/index.js"],
"env": {
"HDW_API_KEY": "your-hdw-api-key"
}
}
}
}
Test your configuration by running the MCP server in debug mode:
node dist/index.js --debug --config ./hdw-config.json
You should see output similar to:
[INFO] Anysite MCP Server starting...
[INFO] Configuration loaded successfully
[INFO] API connection verified
[INFO] 20+ tools registered
[INFO] MCP Server ready on stdio
Enable debug logging for troubleshooting:
{
"logLevel": "debug",
"enableLogging": true
}
This will provide detailed information about API requests, responses, and internal operations.