Skip to main content
Devolens hosts a remote MCP (Model Context Protocol) server at:
https://mcp.devolens.com/mcp
Connecting it to an MCP client such as Claude, ChatGPT, or Codex lets an AI agent work with your Devolens account directly: query the usage analytics behind the KPI dashboards, look up and manage license keys, and manage customers. The agent can only use the permissions you grant. The skills and llms.txt files described in AI-assisted integration help an agent write your integration code. The MCP server is different: it lets an agent act on your live account.

Available tools

Tool groupExamplesWhat it allows
Usage analyticsai_getDailyAggregates, ai_getKeyUsageSummaries, ai_getLicenseActivityBucketsRead the aggregated license activity and usage data that powers the KPI dashboards.
Products and templatesproduct_list, licenseTemplate_listList products and license templates.
License keyskey_get, key_list, key_create, key_extend, key_blockRead license keys and, if permitted, create, extend, block, or otherwise manage them.
Customerscustomer_list, customer_licenses, customer_addRead customers and their licenses and, if permitted, add, edit, or remove customers.
Each tool maps to a Web API endpoint and requires the corresponding access token permission. A connection that was only granted analytics permissions cannot create or block keys.

Enable MCP access

MCP access is disabled by default and is currently available for company accounts only.
  1. Open Security settings and enable MCP access.
  2. Connected clients appear under Connected Apps, where you can review the permissions granted to each connection and revoke it at any time.

Connect a client

claude mcp add --transport http devolens https://mcp.devolens.com/mcp
Run /mcp inside Claude Code to start the authorization flow.
When the client connects for the first time, your browser opens a Devolens authorization page. Sign in and choose the exact permissions the client should have. These are the same permissions used by access tokens, and presets are available for common setups such as read-only access, usage analytics, license operations, and customer management. Completing the flow creates an access token named “Devolens MCP OAuth” scoped to exactly the permissions you selected. Revoking the connection under Connected Apps removes the client’s access.

Authenticate with an access token

Instead of the browser-based authorization flow, you can authenticate by sending an existing access token in the token header. This is useful for headless environments, CI pipelines, and automations, or when you want to reuse a token whose permissions you have already narrowed down.
{
  "mcpServers": {
    "devolens": {
      "url": "https://mcp.devolens.com/mcp",
      "headers": {
        "token": "<your access token>"
      }
    }
  }
}
In Claude Code:
claude mcp add --transport http devolens https://mcp.devolens.com/mcp --header "token: <your access token>"
You can create and manage access tokens here. We recommend creating a dedicated token for each MCP client with only the permissions it needs.

Security recommendations

  • Grant the minimum permissions for the task. For reporting and dashboards, analytics permissions are enough; key and customer write permissions are only needed if the agent should change your account.
  • Data returned by the tools is processed by the AI model you use, so only grant read access to data you are comfortable sharing with your AI provider.
  • Narrowing permissions also reduces, and can eliminate, the personal data that reaches the model. A connection limited to analytics permissions returns aggregated usage data, whereas customer permissions expose names and email addresses, and key permissions can expose fields such as notes and machine codes. This supports a data-minimization approach under GDPR and similar regulations.
  • When you authenticate with an access token, you can additionally use feature lock for data masking to hide individual fields, such as notes, from license key responses.
  • Review Connected Apps periodically and revoke connections you no longer use.
  • Every tool call is executed as a regular Web API request, so MCP activity is recorded in the Web API log and can be audited like any other API usage.

Example prompts

GoalPrompt
Review activityShow daily license activations for product <product id> over the last 30 days.
Find heavy usageWhich license keys had the most activity last week?
Customer lookupFind the customer <name> and list their licenses.
Issue a trialCreate a 30-day trial key for product <product id>.
Support and debuggingThe customer <name> reports that their license fails to activate. Look up their license and recent activity and explain the likely cause.