
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A local Model Context Protocol server that lets LLM hosts interact with a Perses application through tools for projects, dashboards, datasources, roles, variables, plugins, schemas and validation.
Perses MCP Server is cataloged as an MCP server attributed to perses. A local Model Context Protocol server that lets LLM hosts interact with a Perses application through tools for projects, dashboards, datasources, roles, variables, plugins, schemas and validation. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Perses MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, by setting the transport to HTTP with a listen address, the MCP server can communicate with LLM hosts over HTTP.
Basic authentication with username and password, or a bearer token obtained via percli.
Yes, a migrate resource provides a Grafana to Perses dashboard migration tool.
README.md · 89bd6b2689bd · Fetched 2026-11-13 09:47:32 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
The Perses MCP Server is a local Model Context Protocol (MCP) Server that enables the LLM hosts (OpenCode, Claude Desktop, VS Code, Cursor) to interact with the Perses Application in a standardized way.
The complete documentation is available in the docs folder.
https://github.com/user-attachments/assets/03706209-abef-47f2-8067-67c723537750
chmod +x /path/to/perses-mcp-server
Create a YAML configuration file (e.g., perses-mcp-config.yaml). See Authentication for details on each auth method.
# MCP transport mode: "stdio" or "http"
transport: stdio
# Address to listen on for HTTP transport (e.g., ":8000")
listen_address: ":8000"
# Restrict the server to read-only operations
read_only: false
# Comma-separated list of resources to register (if empty, all resources are registered)
resources: ""
# Perses server connection configuration
perses_server:
url: "http://localhost:8080"
# Authentication (choose one method):
# It is recommended to use environment variables for sensitive values.
# Refer the "Environment Variables" section.
# Option 1: Basic authentication (login/password)
# native_auth:
# login: "admin"
# password: "password"
# Option 2: Bearer token (e.g., from `percli whoami --show-token`)
# authorization:
# type: Bearer
# credentials: "<YOUR_TOKEN>"
# # credentialsFile: "/path/to/token/file" # Alternative: read token from file
# TLS configuration (optional)
# tls_config:
# caFile: "/path/to/ca.pem"
# insecureSkipVerify: false
[!NOTE] Configuration values are resolved in this order (later wins): built-in defaults < YAML configuration file < environment variables.
The resources field accepts the following resource names (case-insensitive, comma-separated):
| Resource | Description |
|---|---|
dashboard | Dashboard management tools |
ephemeraldashboard | Ephemeral dashboard management tools |
project | Project management tools |
datasource | Project-level datasource tools |
globaldatasource | Global datasource tools |
role | Project-level role tools |
globalrole | Global role tools |
rolebinding | Project-level role binding tools |
globalrolebinding | Global role binding tools |
variable | Project-level variable tools |
globalvariable | Global variable tools |
plugin | Plugin tools |
migrate | Grafana → Perses dashboard migration tool |
schema | Plugin schema tools (requires Perses v0.55+) |
validate | Dashboard and variable validation tools |
Configuration values in the YAML file can be overridden using environment variables with the PERMCP_ prefix. The variable name is derived by uppercasing each YAML key and joining nested keys with _.
For example, the YAML path perses_server.native_auth.password becomes PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD.
This is particularly useful for sensitive values like passwords and tokens that should not be stored in the config file.
| Environment Variable | Config Path | Description |
|---|---|---|
PERMCP_TRANSPORT | transport | Transport mode |
PERMCP_LISTEN_ADDRESS | listen_address | HTTP listen address |
PERMCP_READ_ONLY | read_only | Read-only mode |
PERMCP_RESOURCES | resources | Resources to register |
PERMCP_PERSES_SERVER_URL | perses_server.url | Perses server URL |
PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN | perses_server.native_auth.login | Basic auth username |
PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD | perses_server.native_auth.password | Basic auth password |
PERMCP_PERSES_SERVER_AUTHORIZATION_TYPE | perses_server.authorization.type | Authorization type (e.g., Bearer) |
PERMCP_PERSES_SERVER_AUTHORIZATION_CREDENTIALS | perses_server.authorization.credentials | Authorization token |
For more details about how environment variables override the configuration file, see the Perses Configuration docs.
Standard config works in most clients:
{
"mcpServers": {
"perses-mcp": {
"command": "<ABSOLUTE_PATH_TO_PERSES_MCP_BINARY>",
"args": [
"--config",
"<ABSOLUTE_PATH_TO_CONFIG_YAML>"
]
}
}
}
[!TIP] Pass sensitive auth values as environment variables instead of storing them in the config file:
Basic auth:
PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGINandPERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORDBearer token:
PERMCP_PERSES_SERVER_AUTHORIZATION_CREDENTIALSSee Environment Variables for the full list.
Add the following to your OpenCode config under mcp. See OpenCode MCP documentation for more details.
{
"mcp": {
"perses": {
"command": [
"<ABSOLUTE_PATH_TO_PERSES_MCP_BINARY>",
"--config",
"<ABSOLUTE_PATH_TO_CONFIG_YAML>"
],
"environment": {
"PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN": "{env:PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN}",
"PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD": "{env:PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD}"
},
"enabled": true,
"type": "local"
}
}
}
Use the Claude Code CLI to add the Perses MCP server. See Claude Code MCP documentation for more details.
claude mcp add --transport stdio \
--env PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN=<YOUR_LOGIN> \
--env PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD=<YOUR_PASSWORD> \
perses-mcp -- <ABSOLUTE_PATH_TO_PERSES_MCP_BINARY> --config <ABSOLUTE_PATH_TO_CONFIG_YAML>
Create or edit the Claude Desktop configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonYou can also access this file via Claude > Settings > Developer > Edit Config.
{
"mcpServers": {
"perses-mcp": {
"command": "<ABSOLUTE_PATH_TO_PERSES_MCP_BINARY>",
"args": [
"--config",
"<ABSOLUTE_PATH_TO_CONFIG_YAML>"
],
"env": {
"PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN": "<YOUR_LOGIN>",
"PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD": "<YOUR_PASSWORD>"
}
}
}
}
Restart Claude Desktop for the changes to take effect.
Add the following to your VS Code MCP config file. See VS Code MCP documentation for more details.
{
"servers": {
"perses-mcp": {
"command": "<ABSOLUTE_PATH_TO_PERSES_MCP_BINARY>",
"args": [
"--config",
"<ABSOLUTE_PATH_TO_CONFIG_YAML>"
],
"env": {
"PERMCP_PERSES_SERVER_NATIVE_AUTH_LOGIN": "<YOUR_LOGIN>",
"PERMCP_PERSES_SERVER_NATIVE_AUTH_PASSWORD": "<YOUR_PASSWORD>"
}
}
}
}
The Streamable HTTP mode allows the MCP server to communicate with LLM hosts over HTTP. This is useful for remote hosting or allowing multiple clients to connect to the same server instance.
For more details, see the MCP Protocol Specification docs.
Set transport: http in your configuration file:
transport: http
listen_address: ":8000"
perses_server:
url: "http://localhost:8080"
native_auth:
login: "admin"
password: "password"
Then point your MCP client to the HTTP endpoint:
{
"servers": {
"perses-http": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}
There are two ways to authenticate the MCP server with your Perses instance. Add the relevant block under perses_server in your configuration file.
Use your Perses username and password directly:
native_auth:
login: "your-username"
password: "your-password"
percli)percli login <PERSES_SERVER_URL>
For example, percli login https://demo.perses.dev
percli whoami --show-token
authorization:
type: Bearer
credentials: "<YOUR_TOKEN>"
[!WARNING] The bearer token automatically expires based on the
access_token_ttlsetting (default: 15 minutes) of the Perses server. You can change this in the Perses app configuration.
perses-mcp-server --config /path/to/config.yaml
| Flag | Default | Description |
|---|---|---|
--config | "" | Path to the YAML configuration file |
-log.level | info | Log level (options: panic, fatal, error, warning, info, debug, trace) |
-log.format | text | Log format (options: text, json) |
-log.method-trace | false | Include the calling method as a field in the log |
[!NOTE]
When running in read-only mode (read_only: truein config), only tools that retrieve information are available. All write operations (create, update, delete) are disabled in read-only mode.
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_projects | List all projects | - |
perses_get_project_by_name | Get a project by name | name |
perses_create_project | Create a new project | project |
perses_update_project | Update an existing project | name |
perses_delete_project | Delete a project | name |
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_dashboards | List the dashboards of a project (name, display name, version, panel count) | project |
perses_get_dashboard_by_name | Get an outline by default; summary: false returns complete JSON for read-modify-write, panels: [keys] returns those full panels regardless of summary (unknown keys come back in missing with the available keys) | project, name |
perses_create_dashboard | Create a dashboard (JSON object); fails if it exists; options dry_run, include_dashboard | project, dashboard |
perses_update_dashboard | Replace an existing dashboard; options expected_version, dry_run, include_dashboard | project, dashboard |
perses_delete_dashboard | Delete a dashboard from a project | project, name |
perses_set_dashboard_panels | Add, replace or remove panels; new panels are appended to a panel group | project, name; at least one entry in panels or remove |
perses_set_dashboard_variables | Add, replace (matched by spec.name) or remove dashboard variables | project, name; at least one entry in variables or remove |
perses_set_dashboard_layout | Define, replace or remove a panel group (panels, panels_per_line, panel_height, collapsed) | project, name, title |
Perses validates the dashboard against its schemas when the write tools save it (with dry_run: true, through its
validation API without saving). The tools return a short summary (project, name, version, url, counts,
changes) instead of echoing the whole dashboard. Validation failures are returned as a tool error with the error of
the Perses client, unchanged.
The incremental set_* tools read the dashboard, modify it in memory and write it back; pass
expected_version to reject a dashboard whose version has changed before editing. This is a client-side
preflight check, not an atomic server-side lock; a concurrent write after the check can still race. The edits made
through one MCP server, perses_update_dashboard included, are serialized, so parallel tool calls do not lose each
other's changes. Errors in panels or variables name the element (panels."<key>": , variables[<index>]: ).
Grid layouts are edited as panel groups, like the Perses SDKs build them: every panel of a group has the same
size, 24 / panels_per_line columns wide and panel_height rows high, and panels fill the rows in order.
perses_set_dashboard_layout defines a group from an ordered list of panel keys, moving them out of other Grid
groups. Groups match by exact title, else ignoring case; several matching groups are an error.
perses_set_dashboard_panels keeps the position of a replaced panel and appends new panels to group
(the last group by default, created with 2 panels per line and height 8 if missing, titled Panel Group when no
group is given) with the size of its first panel: a group laid out like the SDKs is laid out again, while a group
arranged by hand keeps its positions and gets the new panels below its lowest one. When panels are removed or moved
to another group, the groups laid out like the SDKs are laid out again to close the gaps. Tabs layouts are left
untouched; perses_set_dashboard_layout reports a listed panel that a tab also displays. Custom positions need perses_update_dashboard.
perses_update_dashboard reads the dashboard first only for expected_version or dry_run, so a plain
update needs only the update permission.
perses_validate_dashboard checks the JSON against installed plugin CUE schemas without saving it.
perses_get_plugin_schema provides plugin field definitions.
For dashboard configuration, see Perses Dashboards
Ephemeral dashboards are temporary dashboards with a TTL (time-to-live). They are automatically cleaned up after expiry.
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_ephemeral_dashboards | List all ephemeral dashboards for a specific project | project |
perses_get_ephemeral_dashboard_by_name | Get an ephemeral dashboard by name for a project | project, name |
perses_create_ephemeral_dashboard | Create an ephemeral dashboard given a project and dashboard configuration | project, dashboard |
perses_update_ephemeral_dashboard | Update an existing ephemeral dashboard in a project | project, dashboard |
perses_delete_ephemeral_dashboard | Delete an ephemeral dashboard from a project | project, name |
To check an ephemeral dashboard without saving it, pass perses_validate_dashboard a copy with kind Dashboard and
spec.ttl omitted (TTL is not validated).
perses_get_plugin_schema provides plugin field definitions.
For ephemeral dashboard configuration, see Perses EphemeralDashboard
| Tool | Description | Required Parameters | Optional Parameters |
|---|---|---|---|
perses_list_global_datasources | List all global datasources | - | - |
perses_get_global_datasource_by_name | Get a global datasource by name | name | - |
perses_query_global_datasource | Send an HTTP request to a global datasource backend through the Perses proxy | datasource_name | method, path, query_params, body, headers |
perses_create_global_datasource | Create a new global datasource | name, type, url | display_name, proxy_type |
perses_update_global_datasource | Update an existing global datasource | name, type, url | display_name, proxy_type |
perses_delete_global_datasource | Delete a global datasource | name | - |
perses_list_project_datasources | List all datasources for a specific project | project | - |
perses_get_project_datasource_by_name | Get a project datasource by name | project, name | - |
perses_query_project_datasource | Send an HTTP request to a project datasource backend through the Perses proxy | project, datasource_name | method, path, query_params, body, headers |
perses_create_project_datasource | Create a new datasource in a project | project, datasource | - |
perses_update_project_datasource | Update an existing datasource in a project | project, datasource | - |
perses_delete_project_datasource | Delete a datasource from a project | project, name | - |
perses_query_project_datasource and perses_query_global_datasource forward HTTP requests to a configured datasource backend through the Perses proxy. This means:
allowedEndpoints configuration are reachable.method defaults to GET. Only GET and POST are accepted.path is the datasource-relative endpoint path, e.g. /api/v1/query_range for Prometheus or /loki/api/v1/query_range for Loki.query_params is an object of key/value string pairs appended as query string parameters.body is a raw string body (JSON or application/x-www-form-urlencoded). Content-Type defaults to application/json when a body is provided.headers allows passing additional request headers. The Authorization header is always blocked in tool input; use Perses secrets for authentication.isError: true) containing the HTTP status and the response body.[response truncated: exceeded 1 MiB limit] is appended on a new line.Example — Prometheus instant query via a global datasource:
{
"datasource_name": "my-prometheus",
"method": "POST",
"path": "/api/v1/query",
"query_params": {
"query": "up",
"time": "2024-01-01T00:00:00Z"
}
}
Example — Prometheus range query via a project datasource:
{
"project": "my-project",
"datasource_name": "my-prometheus",
"method": "POST",
"path": "/api/v1/query_range",
"query_params": {
"query": "rate(http_requests_total[5m])",
"start": "2024-01-01T00:00:00Z",
"end": "2024-01-01T01:00:00Z",
"step": "60"
}
}
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_global_roles | List all global roles | - |
perses_get_global_role_by_name | Get a global role by name | name |
perses_create_global_role | Create a new global role | name, actions, scopes |
perses_update_global_role | Update an existing global role | name, actions, scopes |
perses_delete_global_role | Delete a global role | name |
perses_list_global_role_bindings | List all global role bindings | - |
perses_get_global_role_binding_by_name | Get a global role binding by name | name |
perses_create_global_role_binding | Create a new global role binding | name, role, subjects |
perses_update_global_role_binding | Update an existing global role binding | name, role, subjects |
perses_delete_global_role_binding | Delete a global role binding | name |
perses_list_project_roles | List all roles for a specific project | project |
perses_get_project_role_by_name | Get a project role by name | project, name |
perses_create_project_role | Create a new project role | project, name, actions, scopes |
perses_update_project_role | Update an existing project role | project, name, actions, scopes |
perses_delete_project_role | Delete a project role | project, name |
perses_list_project_role_bindings | List all role bindings for a project | project |
perses_get_project_role_binding_by_name | Get a project role binding by name | project, name |
perses_create_project_role_binding | Create a new project role binding | project, name, role, subjects |
perses_update_project_role_binding | Update an existing project role binding | project, name, role, subjects |
perses_delete_project_role_binding | Delete a project role binding | project, name |
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_plugins | List all plugins | - |
The schema tools return the CUE schemas of the plugins installed on the Perses server, so that the LLM writes panels, queries, variables, annotations and datasources that the server accepts. They require Perses v0.55 or later. On Perses v0.55.x, shared types such as calculation, format and thresholds are referenced but not defined; perses/perses#4738 fixes this but isn't released yet.
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_plugin_schemas | List the schemas of all installed plugins | - |
perses_get_plugin_schema | Get the latest installed schema of a plugin kind (e.g. StatChart) | kind |
Resource: validate
These tools validate resources without creating or modifying anything, and stay available in read-only mode.
They take resources as JSON objects and return {valid: true}, or {valid: false, error} when the resource cannot be
decoded or Perses rejects it. When the resource could not be validated (e.g. Perses unreachable or a server error),
the tool returns the error of the Perses client unchanged.
| Tool | Description | Required Parameters |
|---|---|---|
perses_validate_dashboard | Validate a dashboard | dashboard |
perses_validate_variable | Validate a project or global variable | variable |
See Validation tools for details.
| Tool | Description | Required Parameters |
|---|---|---|
perses_list_global_variables | List all global variables | - |
perses_get_global_variable_by_name | Get a global variable by name | name |
perses_create_global_variable | Create a new global variable | name, value |
perses_update_global_variable | Update an existing global variable | name, value |
perses_delete_global_variable | Delete a global variable | name |
perses_list_project_variables | List all variables for a specific project | project |
perses_get_project_variable_by_name | Get a project variable by name | project, name |
perses_create_project_variable | Create a project level variable | name, project |
perses_update_project_variable | Update an existing project variable | project, name, value |
perses_delete_project_variable | Delete a project variable | project, name |
If you want to build the MCP server from source code (for development or contribution purposes), run the following command from the source code root directory:
make build
This creates a bin directory containing the binary named perses-mcp-server. Copy the absolute path to the binary to use in your MCP server configuration.
The code is licensed under an Apache 2.0 license.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Perses MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-perses)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.