Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
51
This guide helps you set up the `mcp-grafana` server for Windsurf.
Loading actions...
This guide helps you set up the mcp-grafana server for Windsurf.
mcp-grafana binary in your PATHConfiguration file location:
| OS | Path |
|---|---|
| macOS/Linux | ~/.codeium/windsurf/mcp_config.json |
| Windows | %USERPROFILE%\.codeium\windsurf\mcp_config.json |
Create or edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"grafana": {
"command": "mcp-grafana",
"args": [],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
}
}
}
}
{
"mcpServers": {
"grafana": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"mcp/grafana"
],
"env": {
"GRAFANA_URL": "http://host.docker.internal:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
}
}
}
}
{
"mcpServers": {
"grafana": {
"command": "mcp-grafana",
"args": ["-debug"],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
}
}
}
}
Windsurf limits total MCP tools to 100. If you hit the limit:
Server not connecting:
which mcp-grafanaSSE transport (remote server):
If you need HTTP-based connection instead of stdio:
mcp-grafana --transport streamable-http --address localhost:8000
Then configure with serverUrl:
{
"mcpServers": {
"grafana": {
"serverUrl": "http://localhost:8000/mcp"
}
}
}
{
"mcpServers": {
"grafana": {
"command": "mcp-grafana",
"args": ["--disable-write"],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your-token>"
}
}
}
}