A custom Model Context Protocol (MCP) server that enables real-time access to Datadog logs filtered by service, severity, and environment. This server is designed to integrate with Claude Desktop and Cursor IDE, providing developers with production context directly in their workflow.
- Query Datadog logs by service, severity (Error, Warn, Info), and environment (int, personal-dev, dev, prod)
- Securely uses Datadog API and APP keys from environment variables
- Debug logging to file for troubleshooting
npm install
npm run build
npm run watch
Debug logs are written to logs/debug.log
.
To inspect and debug the MCP protocol:
npm run inspector
Create a .env
file or export these variables in your shell:
DATADOG_API_KEY=<your_datadog_api_key>
DATADOG_APP_KEY=<your_datadog_app_key>
Add or update the MCP server section like below in respective json file location based on your setup:
{
"mcpServers": {
"prodsync-mcp": {
"command": "node",
"args": [
"/path/to/workspace/prodsync-mcp-server/build/index.js"
],
"env": {
"DATADOG_API_KEY": "<your_datadog_api_key>",
"DATADOG_APP_KEY": "<your_datadog_app_key>"
}
}
}
}
For MacOS, edit the config file at:
~/Library/Application Support/Claude/claude_desktop_config.json
For MacOS, edit the config file at:
~/.cursor/mcp.json
For any issues, check logs/debug.log
for troubleshooting information.