Dreamlit’s Model Context Protocol (MCP) server lets AI agents inspect your Dreamlit workspace, create or update notification workflow drafts, and prepare workflows for publishing from the tools you already use. The server is hosted by Dreamlit. You do not need to install or run a local Dreamlit package.Documentation Index
Fetch the complete documentation index at: https://notikaai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Server URL
https://mcp.dreamlit.ai/mcpTransport
Streamable HTTP for remote MCP clients.
Quickstart
Add Dreamlit MCP to your AI client with the server URL, authorize Dreamlit, then ask the agent to create or update workflows in plain English.Finish Dreamlit setup
Create a Dreamlit account, connect your database, and configure the email or Slack channels your workflows will use.
Add the MCP server
Use this server URL in Claude Code, Cursor, Codex, or another remote MCP client:If your AI client can edit its own MCP settings, ask it:
Add Dreamlit MCP with this server URL: https://mcp.dreamlit.ai/mcp
Authorize Dreamlit
Complete the browser authorization flow when your client prompts you. Dreamlit
will ask which workspace the client can access.
What is MCP?
MCP is an open standard that lets AI clients connect to external tools and data sources through one shared protocol. Instead of every AI client needing a custom Dreamlit integration, the client connects to Dreamlit’s MCP server and discovers the tools Dreamlit exposes. For Dreamlit, MCP means your agent can work with notification workflows using product-level actions:- Find the right workspace, project, or workflow
- Understand Dreamlit concepts and project setup state
- Create or update workflow drafts from plain-English prompts
- Return preview links so you can inspect the result in Dreamlit
- Prepare publishing and ask for explicit confirmation before anything goes live
What can Dreamlit MCP do?
Dreamlit MCP is focused on workflow authoring and safe workflow operations. It is not a low-level database API.| Capability | What it means |
|---|---|
| Inspect setup | Check the approved workspace, project setup, Dreamlit page links, table and column summaries, and prompting guidance. |
| List projects and workflows | Find the project or workflow your agent should work on. |
| Inspect workflows | Return normalized workflow structure and a Dreamlit preview URL before editing. |
| Create drafts | Ask Dreamlit to create a workflow draft from an outcome-oriented prompt. |
| Update drafts | Continue editing an existing workflow through the same draft history you see in the web app. |
| Prepare publish | Validate a workflow and return a publish confirmation payload with a preview URL. |
| Confirm publish | Publish only after the user explicitly approves the prepared publish request. |
| Unpublish | Disable a live workflow when the client has publish permission. |
| Hand off to the browser | Send you to Dreamlit when setup, unsupported edits, or manual review need the web app. |
Prerequisites
Before connecting an AI client:- Create a Dreamlit account at app.dreamlit.ai.
- Finish workspace and project setup in Dreamlit.
- Connect a Supabase or Postgres database.
- Configure any channels the workflows will need, such as email domains, brand kits, or Slack.
- Use an MCP client that supports remote MCP over Streamable HTTP, or one that can send MCP requests through an HTTP bridge.
Dreamlit MCP works against existing Dreamlit workspaces and projects. If your
AI client says setup is required, open the Dreamlit link it returns and finish
setup in the web app before reconnecting.
How do I connect Dreamlit MCP with OAuth?
OAuth is the best option when your MCP client supports remote server authentication. The client connects to Dreamlit, Dreamlit opens a browser authorization screen, and you approve access to one Dreamlit workspace.Approve Dreamlit access
Your client should open a Dreamlit authorization page. Sign in, choose the
workspace, review the requested scopes, and click Allow access.
- Claude Code
- Cursor
- Codex
/mcp will show
the server status instead.How do I use a personal access token (PAT)?
Use a personal access token when your client cannot complete OAuth or when you want a project-pinned credential. Dreamlit personal access tokens are:- Scoped to one project
- Shown once when created
- Stored hashed by Dreamlit
- Revocable from project settings
- Limited by the scopes you choose
Create a token
Open Dreamlit, go to Project Settings -> Project Details -> MCP Access, then click Create token.
- Claude Code
- JSON config
- Codex
Permissions
Dreamlit MCP uses three workflow scopes.| Scope | Allows | Typical use |
|---|---|---|
workflows:read | get_status, list_projects, list_workflows, get_workflow_and_preview_url | Inspect setup, find workflows, review drafts and published state. |
workflows:write | create_or_update_workflow | Create new workflow drafts or edit existing drafts from prompts. |
workflows:publish | prepare_publish, confirm_publish, unpublish_workflow | Validate, publish, schedule broadcasts, or unpublish workflows. |
Tools
Your AI client discovers these tools from the server.| Tool | Required scope | Use it for |
|---|---|---|
get_status | workflows:read | Learn how Dreamlit MCP works, inspect workspace/project setup, get Dreamlit page links, and retrieve prompting guidance. |
list_projects | workflows:read | Find projects in the approved workspace. Project-scoped tokens only return their own project. |
list_workflows | workflows:read | Find workflows in a project, optionally filtered by trigger type. |
get_workflow_and_preview_url | workflows:read | Inspect draft and published workflow structure before editing or publishing. |
create_or_update_workflow | workflows:write | Create or update a draft from a natural-language prompt. |
prepare_publish | workflows:publish | Validate the workflow and return the exact payload needed for confirmation. |
confirm_publish | workflows:publish | Publish only after the user approves the prepared publish request. |
unpublish_workflow | workflows:publish | Disable a live workflow. |
dreamlit://mcp/guide resource. Clients that support MCP resources can read it for prompting guidance, trigger types, unsubscribe guidance, and the recommended Dreamlit MCP flow.
Recommended workflow
Ask your agent to work in this order:Check status
Start with
get_status. This gives the agent Dreamlit concepts, setup state, project context, and links back to relevant Dreamlit pages.Review in Dreamlit
Open the returned workflow URL to inspect the draft, preview output, and make
manual adjustments if needed.
Prompting Dreamlit through MCP
Dreamlit works best when you describe the notification outcome, not the internal workflow graph. Good prompts include:- The event or schedule that should start the workflow
- The audience or recipient
- The message goal
- Data needed for targeting or personalization
- Timing, timezone, and business rules
- Whether unsubscribe should be enabled
- Tone or brand notes when they matter
Safety and control
Dreamlit MCP is designed so agents can help with workflows without making surprise production changes.- Draft changes stay draft-only until you publish.
- Publishing is always a separate confirmation step with a Dreamlit preview link.
- If an action needs setup or manual review, Dreamlit sends you back to the web app.
- Query steps are read-only against your application data.
- Access is limited by the permissions you approve. Personal access tokens are project-scoped and can be revoked anytime.
Troubleshooting
My client says Dreamlit authorization is required
Reconnect the MCP server and complete the browser authorization flow. If you are using a personal access token, confirm the token is still active and that your client is sending it as anAuthorization: Bearer ... header.
My client says it needs additional permission
The current OAuth grant or personal access token does not include the required scope. Reconnect with the requested workflow access, or create a token with the missing scope.Dreamlit says to choose a project
Your approved workspace has multiple projects and the agent did not specify one. Ask the agent to calllist_projects, then retry with the right project.
Dreamlit says setup is required
Open the returned Dreamlit setup URL, finish workspace and project setup, then reconnect your MCP client.A workflow edit returns a browser handoff
Some changes still need the Dreamlit web app. Open the returned URL, review the draft, and continue from there.Publishing fails after a preview
The workflow may have changed since the publish preview. Ask the agent to runprepare_publish again, review the new preview and warnings, then confirm only if it still looks right.
Tools are visible but calls time out
Workflow authoring can take longer than read-only calls because Dreamlit is planning and applying a real workflow draft. Retry once. If it keeps failing, open the returned Dreamlit URL if one is present, or contact support.Testing with MCP Inspector
You can use the MCP Inspector to verify the server connection.Next steps
Quickstart
Connect your database and create your first workflow.
Workflow basics
Learn how Dreamlit workflows are structured.
Get support
Reach the team if MCP setup blocks you.
Last validated: 2026-04-29