MCP Server Studio
What changed across metrics, logs and traces, and where it started (Grafana, Victoria, New Relic).
Registry name: io.github.asinha07/spoor
Add to claude_desktop_config.json:
{
"mcpServers": {
"spoor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SPOOR_METRICS_TYPE",
"-e",
"SPOOR_LOGS_TYPE",
"-e",
"SPOOR_TRACES_TYPE",
"-e",
"SPOOR_METRICS_URL",
"-e",
"SPOOR_LOGS_URL",
"-e",
"SPOOR_TRACES_URL",
"-e",
"SPOOR_METRICS_TOKEN",
"-e",
"SPOOR_LOGS_TOKEN",
"-e",
"SPOOR_TRACES_TOKEN",
"-e",
"NEW_RELIC_ACCOUNT_ID",
"-e",
"NEW_RELIC_API_KEY",
"ghcr.io/asinha07/spoor:0.3.1"
],
"env": {
"SPOOR_METRICS_TYPE": "<SPOOR_METRICS_TYPE>",
"SPOOR_LOGS_TYPE": "<SPOOR_LOGS_TYPE>",
"SPOOR_TRACES_TYPE": "<SPOOR_TRACES_TYPE>",
"SPOOR_METRICS_URL": "<SPOOR_METRICS_URL>",
"SPOOR_LOGS_URL": "<SPOOR_LOGS_URL>",
"SPOOR_TRACES_URL": "<SPOOR_TRACES_URL>",
"SPOOR_METRICS_TOKEN": "<SPOOR_METRICS_TOKEN>",
"SPOOR_LOGS_TOKEN": "<SPOOR_LOGS_TOKEN>",
"SPOOR_TRACES_TOKEN": "<SPOOR_TRACES_TOKEN>",
"NEW_RELIC_ACCOUNT_ID": "<NEW_RELIC_ACCOUNT_ID>",
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}Run in your terminal:
claude mcp add spoor -e SPOOR_METRICS_TYPE='<SPOOR_METRICS_TYPE>' -e SPOOR_LOGS_TYPE='<SPOOR_LOGS_TYPE>' -e SPOOR_TRACES_TYPE='<SPOOR_TRACES_TYPE>' -e SPOOR_METRICS_URL='<SPOOR_METRICS_URL>' -e SPOOR_LOGS_URL='<SPOOR_LOGS_URL>' -e SPOOR_TRACES_URL='<SPOOR_TRACES_URL>' -e SPOOR_METRICS_TOKEN='<SPOOR_METRICS_TOKEN>' -e SPOOR_LOGS_TOKEN='<SPOOR_LOGS_TOKEN>' -e SPOOR_TRACES_TOKEN='<SPOOR_TRACES_TOKEN>' -e NEW_RELIC_ACCOUNT_ID='<NEW_RELIC_ACCOUNT_ID>' -e NEW_RELIC_API_KEY='<NEW_RELIC_API_KEY>' -- docker run -i --rm -e SPOOR_METRICS_TYPE -e SPOOR_LOGS_TYPE -e SPOOR_TRACES_TYPE -e SPOOR_METRICS_URL -e SPOOR_LOGS_URL -e SPOOR_TRACES_URL -e SPOOR_METRICS_TOKEN -e SPOOR_LOGS_TOKEN -e SPOOR_TRACES_TOKEN -e NEW_RELIC_ACCOUNT_ID -e NEW_RELIC_API_KEY ghcr.io/asinha07/spoor:0.3.1Add to .cursor/mcp.json:
{
"mcpServers": {
"spoor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SPOOR_METRICS_TYPE",
"-e",
"SPOOR_LOGS_TYPE",
"-e",
"SPOOR_TRACES_TYPE",
"-e",
"SPOOR_METRICS_URL",
"-e",
"SPOOR_LOGS_URL",
"-e",
"SPOOR_TRACES_URL",
"-e",
"SPOOR_METRICS_TOKEN",
"-e",
"SPOOR_LOGS_TOKEN",
"-e",
"SPOOR_TRACES_TOKEN",
"-e",
"NEW_RELIC_ACCOUNT_ID",
"-e",
"NEW_RELIC_API_KEY",
"ghcr.io/asinha07/spoor:0.3.1"
],
"env": {
"SPOOR_METRICS_TYPE": "<SPOOR_METRICS_TYPE>",
"SPOOR_LOGS_TYPE": "<SPOOR_LOGS_TYPE>",
"SPOOR_TRACES_TYPE": "<SPOOR_TRACES_TYPE>",
"SPOOR_METRICS_URL": "<SPOOR_METRICS_URL>",
"SPOOR_LOGS_URL": "<SPOOR_LOGS_URL>",
"SPOOR_TRACES_URL": "<SPOOR_TRACES_URL>",
"SPOOR_METRICS_TOKEN": "<SPOOR_METRICS_TOKEN>",
"SPOOR_LOGS_TOKEN": "<SPOOR_LOGS_TOKEN>",
"SPOOR_TRACES_TOKEN": "<SPOOR_TRACES_TOKEN>",
"NEW_RELIC_ACCOUNT_ID": "<NEW_RELIC_ACCOUNT_ID>",
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"spoor": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SPOOR_METRICS_TYPE",
"-e",
"SPOOR_LOGS_TYPE",
"-e",
"SPOOR_TRACES_TYPE",
"-e",
"SPOOR_METRICS_URL",
"-e",
"SPOOR_LOGS_URL",
"-e",
"SPOOR_TRACES_URL",
"-e",
"SPOOR_METRICS_TOKEN",
"-e",
"SPOOR_LOGS_TOKEN",
"-e",
"SPOOR_TRACES_TOKEN",
"-e",
"NEW_RELIC_ACCOUNT_ID",
"-e",
"NEW_RELIC_API_KEY",
"ghcr.io/asinha07/spoor:0.3.1"
],
"env": {
"SPOOR_METRICS_TYPE": "<SPOOR_METRICS_TYPE>",
"SPOOR_LOGS_TYPE": "<SPOOR_LOGS_TYPE>",
"SPOOR_TRACES_TYPE": "<SPOOR_TRACES_TYPE>",
"SPOOR_METRICS_URL": "<SPOOR_METRICS_URL>",
"SPOOR_LOGS_URL": "<SPOOR_LOGS_URL>",
"SPOOR_TRACES_URL": "<SPOOR_TRACES_URL>",
"SPOOR_METRICS_TOKEN": "<SPOOR_METRICS_TOKEN>",
"SPOOR_LOGS_TOKEN": "<SPOOR_LOGS_TOKEN>",
"SPOOR_TRACES_TOKEN": "<SPOOR_TRACES_TOKEN>",
"NEW_RELIC_ACCOUNT_ID": "<NEW_RELIC_ACCOUNT_ID>",
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"spoor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SPOOR_METRICS_TYPE",
"-e",
"SPOOR_LOGS_TYPE",
"-e",
"SPOOR_TRACES_TYPE",
"-e",
"SPOOR_METRICS_URL",
"-e",
"SPOOR_LOGS_URL",
"-e",
"SPOOR_TRACES_URL",
"-e",
"SPOOR_METRICS_TOKEN",
"-e",
"SPOOR_LOGS_TOKEN",
"-e",
"SPOOR_TRACES_TOKEN",
"-e",
"NEW_RELIC_ACCOUNT_ID",
"-e",
"NEW_RELIC_API_KEY",
"ghcr.io/asinha07/spoor:0.3.1"
],
"env": {
"SPOOR_METRICS_TYPE": "<SPOOR_METRICS_TYPE>",
"SPOOR_LOGS_TYPE": "<SPOOR_LOGS_TYPE>",
"SPOOR_TRACES_TYPE": "<SPOOR_TRACES_TYPE>",
"SPOOR_METRICS_URL": "<SPOOR_METRICS_URL>",
"SPOOR_LOGS_URL": "<SPOOR_LOGS_URL>",
"SPOOR_TRACES_URL": "<SPOOR_TRACES_URL>",
"SPOOR_METRICS_TOKEN": "<SPOOR_METRICS_TOKEN>",
"SPOOR_LOGS_TOKEN": "<SPOOR_LOGS_TOKEN>",
"SPOOR_TRACES_TOKEN": "<SPOOR_TRACES_TOKEN>",
"NEW_RELIC_ACCOUNT_ID": "<NEW_RELIC_ACCOUNT_ID>",
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
SPOOR_METRICS_TYPE | No | Backend for metrics: victoriametrics (default), prometheus or newrelic |
SPOOR_LOGS_TYPE | No | Backend for logs: victorialogs (default), loki or newrelic |
SPOOR_TRACES_TYPE | No | Backend for traces: victoriatraces (default), tempo or newrelic |
SPOOR_METRICS_URL | No | Metrics backend URL (VictoriaMetrics or Prometheus) as seen from the container, e.g. http://host.docker.internal:8428 |
SPOOR_LOGS_URL | No | Logs backend URL (VictoriaLogs or Loki) as seen from the container, e.g. http://host.docker.internal:9428 |
SPOOR_TRACES_URL | No | Traces backend URL (VictoriaTraces or Tempo) as seen from the container, e.g. http://host.docker.internal:10428 |
SPOOR_METRICS_TOKEN | No | Bearer token for the metrics backend, if it requires one |
SPOOR_LOGS_TOKEN | No | Bearer token for the logs backend, if it requires one |
SPOOR_TRACES_TOKEN | No | Bearer token for the traces backend, if it requires one |
NEW_RELIC_ACCOUNT_ID | No | New Relic account ID, for signals of type newrelic |
NEW_RELIC_API_KEY | No | New Relic User API key (NRAK-...), for signals of type newrelic |