Personal access token
- Advanced
- 4 steps
Connect a script, your own app or any AI tool that supports custom headers using a token instead of a sign-in window.
Connect with a token A personal access token is a secret key tied to your Drento account. Send it in an Authorization header and the connection works without a sign-in window. Treat it like a password.
Before you start
Check these first.
A Drento account
Any Drento account can connect and read its projects. Creating blueprints, designs, logos and optional wireframes uses your plan's credits, so it needs an active plan: Starter, Creator or Studio.
A token
Create one in Connections, in the Drento sidebar. The full token is shown only once, so copy it straight away.
Steps
Create a token
In Drento, open Connections from the sidebar and click New token. Choose its permissions, then copy the token. It is shown only once.
Add the server
In your AI tool or code, add the server URL
https://mcp.drento.app/mcp.Send the token
Add the header
Authorization: Bearer <your-token>to every request, with your token in place of <your-token>.Try it
Ask your AI tool to list your Drento projects, or call the
drento_list_projectstool from your code.
Server settings
In an AI tool that accepts custom headers, add the server URL with an Authorization header. This is the Cursor form. Other AI tools use similar url and headers fields.
{
"mcpServers": {
"drento": {
"url": "https://mcp.drento.app/mcp",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}In your own code, pass the header to the transport. Keep the token in an environment variable and out of source control.
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
const transport = new StreamableHTTPClientTransport(new URL("https://mcp.drento.app/mcp"), {
requestInit: {
headers: { Authorization: `Bearer ${process.env.DRENTO_TOKEN}` },
},
})
const client = new Client({ name: "my-app", version: "1.0.0" })
await client.connect(transport)
const { tools } = await client.listTools()
const projects = await client.callTool({ name: "drento_list_projects", arguments: {} })These values are the same for every AI tool.
- Server URL
https://mcp.drento.app/mcp- HTTPS, with no trailing slash
- Transport
Streamable HTTP- The only transport Drento supports
- MCP protocol versions
2025-11-252025-06-182025-03-26- Your AI tool picks one when it connects
- Sign-in
OAuth 2.1, or Bearer <token>- Most AI tools handle sign-in for you. Scripts send a personal access token.
To disconnect an AI tool or delete a token, open Connections in the Drento sidebar.
You choose these when you create the token.
projects:readRead-onlyprojects:writeCan deleteprojects:deleteCan deleteblueprint:writeMakes changeswireframes:writeMakes changesdesigns:generateMakes changesdesign-system:writeMakes changeslogos:generateMakes changeslogos:reviewRead-onlyadvisor:chatMakes changesaccount:readRead-onlyaccount:writeCan deletegenerations:readRead-only
Having trouble?
Most problems come from one of three things: an AI tool that is out of date, a permission you did not approve, or a connection that was removed in Connections. The tools reference lists the permission each tool needs.
Open the tools reference