Omni Analytics MCP Server
for AI Agents
Connect your AI agent to StackOne's Omni Analytics MCP server and give it 207 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
207 Agent Actions
Agents can read, write, delete and run operations in Omni Analytics. Extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Omni Analytics MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Omni Analytics tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Omni Analytics call.
Tools Discovery →What is the Omni Analytics MCP Server?
A Omni Analytics MCP server lets AI agents read and write Omni Analytics data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Omni Analytics MCP server ships with 207 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Omni Analytics MCP Tools
Every StackOne action for Omni Analytics, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.
An Eval Prompt Sets
- Create An Eval Prompt Set
Create a new eval prompt set bound to a shared model.
- Get An Eval Prompt Set
Get a single prompt set with all of its prompts.
- Update An Eval Prompt Set
Update a prompt set's name, description, and/or prompts.
An AI Routines
- Create An AI Routine
Create a new AI Routine that runs a saved prompt on a schedule and delivers the AI response through email, Slack, or a webhook.
- Get An AI Routine
Retrieve details for a specific AI Routine by ID, including its persisted condition query and the status of its most recent completed run.
- Update An AI Routine
Update an existing AI Routine.
- Delete An AI Routine
Delete an AI Routine.
Custom Color Palettes
- Create Custom Color Palette
This endpoint requires Organization Admin permissions.
- Get Custom Color Palette
Retrieve a custom chart color palette by ID.
- List Custom Color Palettes
List the custom chart color palettes defined for the organization.
- Update Custom Color Palette
This endpoint requires Organization Admin permissions.
- Delete Custom Color Palette
This endpoint requires Organization Admin permissions.
Connections
- Create Connection
Creates a new database connection.
- Get Connection
This endpoint requires Restricted Querier permissions or higher.
- List Connections
Retrieves a list of database connections with optional filtering and sorting
- Update Connection
Update connection properties including credentials.
- Delete Connection
This endpoint requires Connection Admin permissions.
Connection Environments
- Create Connection Environments
Creates connection environments by associating environment-specific connections with a base connection
- Update Connection Environment
Associates user attribute values with a specific connection environment, which will determine when it is used.
- Delete Connection Environment
Deletes a connection environment by ID.
Document Permissions
- Get Document Permissions
Retrieve the document-level ability values (the Abilities toggles in the document's settings), plus the resolved permits for a specific user when userId is provided.
- Update Document Permissions
Update existing document permissions for users or groups.
Documents
- List Documents
List documents with pagination and filtering
- Move Document
Move a document to new folder or change scope.
- Delete Document
Delete a document (move to Trash)
Folders
- Create Folder
Create a new folder.
- Get Folder
Retrieve a single folder by its ID.
- List Folders
Retrieve a paginated list of folders within an organization.
- Update Folder
This endpoint requires Editor permissions or higher on the folder being updated.
- Delete Folder
Delete a folder.
Folder Permissions
- Get Folder Permissions
Retrieve the permissions on a folder.
- Update Folder Permissions
Update existing folder permissions for users or groups
Labels
- Create Label
Create a new label in the organization.
- Get Label
Retrieve a single label by name.
- List Labels
Retrieve all labels in the organization.
- Update Label
Update an existing label, including renaming, changing Verified status, or adding/removing it from the Homepage.
- Delete Label
Delete a label from the organization.
Models
- Create Model
Create a new model.
- List Models
Retrieves a paginated list of models with their metadata.
Topics
- List Topics
Retrieve a list of topics in the model, including composite topics.
- Update Topic
Update an existing topic.
- Delete Topic
Delete a topic from a model.
Branchs
- Create Branch
Creates an empty branch, with the user as its creator.
- Delete Branch
Deletes a branch associated with the specified shared model.
Dbt Configurations
- Get Dbt Configuration
Connection Admin permissions are required to use this endpoint.
- Update Dbt Configuration
Connection Admin permissions are required to use this endpoint.
- Delete Dbt Configuration
Connection Admin permissions are required to use this endpoint.
Git Configurations
- Create Git Configuration
Create a new Git configuration for a shared model, or a shared extension model in the Develop independently branch workflow.
- Get Git Configuration
Retrieve the Git configuration for a shared model, or a shared extension model in the Develop independently branch workflow that owns its own Git repository, separate from its parent model's.
- Update Git Configuration
Update the Git configuration for a shared model, or a shared extension model in the Develop independently branch workflow.
- Delete Git Configuration
Remove the Git configuration from a shared model, or a shared extension model in the Develop independently branch workflow.
Schema Refresh Schedules
- Create Schema Refresh Schedule
Create a new schema refresh schedule for the specified connection.
- Get Schema Refresh Schedule
Retrieve the details of a connection's specific schema refresh schedule.
- List Schema Refresh Schedules
Retrieve all schema refresh schedules configured for the specified connection.
- Update Schema Refresh Schedule
Update the schedule and/or timezone for an existing schema refresh schedule.
- Delete Schema Refresh Schedule
Delete a schema refresh schedule.
Dbt Environments
- Create Dbt Environment
Create a new dbt environment on the specified connection.
- List Dbt Environments
This endpoint requires Restricted Querier permissions or higher on the connection.
- Update Dbt Environment
The permissions required depend on who owns the environment:
- Delete Dbt Environment
The permissions required depend on who owns the environment:
Schedules
- Create Schedule
Create a scheduled task delivering a document's dashboard, workbook tab, or app.
- Get Schedule
Retrieve the details of a single schedule, including its delivery destinations, recurrence configuration, and current status.
- List Schedules
Retrieves scheduled tasks.
- Update Schedule
Update the specified task.
- Delete Schedule
Move a schedule to the trash.
Schedule Recipients
- Add Schedule Recipients
Add one or more recipients to an existing scheduled email task.
- List Schedule Recipients
Retrieve the list of recipients for the specified schedule.
- Remove Schedule Recipients
Remove one or more recipients from an existing scheduled email task.
Embed Users
- Retrieve Embed User
Retrieve an embed user using their unique ID.
- List Embed Users
List embed users in the organization, sorted by creation time.
- Delete Embed User
Delete the specified embed user.
Users
- Create User
Create a user.
- Retrieve User
Retrieve a user using their unique ID.
- List Users
List users in the organization, sorted by creation time.
- Update User
Update the specified user by applying a list of SCIM 2.0 patch operations.
- Delete User
Delete the specified user.
User Groups
- Create User Group
Create a user group.
- Retrieve User Group
Retrieves a user group using its unique ID.
- List User Groups
Return a list of user groups, sorted by creation time.
- Update User Group
Update the specified user group by applying a list of SCIM 2.0 patch operations.
- Delete User Group
Delete the specified user group.
User Attributes
- Create User Attribute
Organization Admin permissions are required to use this endpoint.
- List User Attributes
Organization Admin permissions are required to use this endpoint.
Switchable Values For A User Or Groups
- Retrieve Switchable Values For A User Or Group
Organization Admin permissions are required to use this endpoint.
- Set Switchable Values For A User Or Group
Organization Admin permissions are required to use this endpoint.
A User Attribute Definitions
- Update A User Attribute Definition
Organization Admin permissions are required to use this endpoint.
- Delete A User Attribute Definition
Organization Admin permissions are required to use this endpoint.
Other (120)
- Create AI Job
Submit a new AI job for asynchronous execution.
- Create And Publish Document
Create and publish a brand-new document.
- Publish Draft
Publish the document's current main (non-branch) draft, promoting it to the published version.
- Create Draft And Patch Document
Create a new draft on the published document and apply the patch.
- Create Or Update A Pull Request For A Model Branch
This endpoint requires Modeler or Connection Admin permissions.
- Create Or Update YAML Files
Create or overwrite a YAML file for a model.
- Add A Data Input Table To A Draft
This endpoint requires edit access to the specified document and permissions to edit the document's model.
- Add An Input Column To A Query
This endpoint requires edit access to the specified document and permissions to edit the document's model.
- Upload A CSV File
To use this endpoint:
- Get AI Job Status
Retrieve the current status and details of an AI job, including its state, progress information, and result summary.
- Get Conversation
Retrieve a conversation with its full message history — alternating user and assistant turns.
- Get Job Status
Currently, this endpoint only supports schema refresh jobs.
- List AI Conversations
List a user's recent AI conversations, ordered by most-recent activity.
- List Available LLMS
List the LLMs the caller may pass as requestedLlm on the Create AI job and Generate a query endpoints.
- List Eval Prompt Sets
List eval prompt sets, sorted alphabetically by name.
- Get AI Agent Branding
Return the organization's AI Agent's branding configuration, including display name, custom logo URL, and copy for AI Agent landing surfaces.
- Get An Eval Run
Get an eval run with every per-prompt result row, including the underlying agentic job state and any scoring data.
- Get The Latest Generation Run
Organization Admin permissions are required to use this endpoint.
- Get Status For A Generation Run
Organization Admin permissions are required to use this endpoint.
- List AI-Generated Suggestions
This endpoint requires Organization Admin permissions.
- List AI Routines
List AI Routines for the calling user, newest first.
- List Eval Runs
List runs for a prompt set, newest first, filtered to runs whose model the caller can access.
- Download File
Retrieve the completed dashboard or tile download file.Only call this endpoint when the Check download status endpoint returns a complete status.
- Get App Download File
Stream the finished file for an app download job.
- Get App Download Status
Poll the status of an app download job started by Initiate app download.
- List Document Queries
Retrieve queries associated with a document by its identifier.
- Get Document State
Retrieve the document's published state.
- Get Draft State
Read the named draft's state.
- List All Users And Groups With Document Access
List all users and groups with access to a document.
- Retrieve Content
Retrieve paginated list of documents and folders
- List Document Drafts
This endpoint requires Viewer permissions or higher on the specified document.
- Search Dashboards And Apps
Free-text search over the organization's dashboards and apps.
- Get A Branch
Get a branch and its changes, as the caller sees them.
- List Model Schemas
Retrieves a sorted list of all available schema names for the specified model, including physical, virtual, and dynamic schemas.
- Get Model YAML
Retrieve the YAML representation of a model with optional filtering and mode selection.
- Retrieve A Topic
Retrieve a topic in a model by name.
- List Branches
List the branches the caller may see:
- Get Dbt Exposures
Connection Admin permissions are required to use this endpoint.
- Get Model AI Agent Actions
Return AI agent actions configured for a model — a unified list of sample queries and skills suitable for surfacing as suggested prompts in AI interfaces.
- Retrieve User Group Model Roles
Retrieve the model role assignments for a user group.
- Retrieve User Model Roles
Retrieve the model role assignments for a user.
- List Uploads
List all uploads (CSV files and spreadsheets) in the organization with metadata and optional filtering.
- Get Current Identity And Permissions
Retrieve the authenticated caller's own identity, API key scope, organization role, and resolved per-model permissions.
- List Email-Only Users
List email-only users and their user attributes.
- List Switchable Attributes For The Current User
Retrieve the user attributes the calling user can switch, along with any switch that is currently active.
- Update Document Permission Settings
Update the permission and interactivity settings for a document.
- Update Organization-Level Folder Permissions
Set the role every member of the organization holds on a folder, and/or turn AccessBoost on or off for that organization-wide access, without naming individual users or groups.
- Sync Model With Git Repository
Trigger a sync between the model and its configured Git repository.
- Update Field Metadata
Update a field's metadata on a view.
- Set Dbt Environment On Model Branch
Sets the active dbt environment on a model branch.
- Delete A Suggestion
Organization Admin permissions are required to use this endpoint.
- Remove Dashboard From Document
Remove the dashboard from an existing draft, leaving a workbook-only document.
- Remove Label From Document
Remove a label from a document.
- Delete View
Delete or ignores a view in a model.
- Delete A YAML File
Delete a topic, composite topic, or view YAML file from a model.
- Delete An Upload
Delete a CSV upload by its ID.
- Stream AI Job Results
Retrieve the full result of a completed AI job, including all actions taken by the AI (queries generated, data retrieved) and the final summarized answer.
- Render AI Job Visualization
Render the visualization from a completed AI job as a PNG image, or, with format=html, as an interactive HTML page.
- Cancel AI Job
Request cancellation of an AI job.
- Generate A Query
Generate a structured Omni query from natural language using AI.
- Pick Topic
Analyze a natural language prompt and determines which topic in the model is the best fit for answering the question.
- Rate An AI Job'S Response
Rate an AI job's response using the same thumbs up/thumbs down and optional comment a user can give a response in the Omni UI or in Slack.
- Cancel An Eval Run
Cancel an in-flight eval run.
- Generate Model Suggestions
This endpoint requires Organization Admin permissions.
- Dismiss A Suggestion
This endpoint requires Organization Admin permissions.
- Restore An Archived Eval Prompt Set
Restore an archived prompt set.
- Restore An Archived Eval Run
Restore an archived eval run.
- Restore A Dismissed Suggestion
This endpoint requires Organization Admin permissions.
- Start An Eval Run
Create and start a new run against an existing prompt set.
- Trigger AI Routine
Run an existing routine immediately, in addition to its schedule — e.g.
- Enable Model AI Suggestions Schedule
This endpoint requires Organization Admin permissions.
- Archive An Eval Prompt Set
Archive (soft-delete) a prompt set.
- Archive An Eval Run
Archive (soft-delete) an eval run.
- Disable Model AI Suggestions Schedule
This endpoint requires Organization Admin permissions.
- Check Download Status
Retrieve the current status of a dashboard or tile download job.
- Validate Content
Validate all content against the model and return documents with queries and any validation issues.
- Grant Document Permissions
Grant document permissions to users or groups.
- Find And Replace Content
Performs find/replace operations on content using the specified model.
- Initiate App Download
Start an asynchronous download job for a published app, rendered headlessly the same way a scheduled app delivery renders it.
- Initiate Dashboard Or Tile Download
Start an asynchronous download job for a published dashboard, a dashboard draft, or single tile with support for multiple output formats.
- Run A Saved Document Query
Run one of a document's saved queries and returns the results as JSON, CSV, or XLSX.
- Upgrade Dashboard Layout
Upgrade a document to the advanced dashboard layout — the same action available in the UI under File > Upgrade layout.
- Apply Label To Document
Apply an existing label to a document.
- Rename Document Identifier
Rename a published document's identifier.
- Bulk Update Document Labels
Add and/or remove multiple labels from a document in a single atomic operation.
- Patch Draft
Apply a patch to an existing draft.
- Archive Draft
Archive the current draft of the specified document.
- Revoke Document Permissions
Revoke document permissions for users or user groups.
- Read App Content
This API is currently in development and may change.
- Duplicate Published Document
Duplicate a published document.
- Grant Folder Permissions
Grant folder permissions to users or groups
- Bulk Update Folder Labels
Add and/or remove multiple labels from a folder.
- Revoke Folder Permissions
Revoke folder permissions from users or groups
- Validate Model
Retrieve validation issues for a model and its branches.
- Merge A Branch
Merge a model branch into the shared model.
- Re-Parse Model SQL
Querier permissions or higher on a model are required to use this endpoint.
- Refresh Schema
This endpoint requires either Connection Admin or Modeler permissions:
- Reset Cache
Reset the cache for the specified cache policy.
- Rename Model
Connection Admin permissions are required to rename a shared model or shared extension model.
- Archive Shared Or Extension Model
Connection Admin permissions are required to use this endpoint.
- Assign Or Update User Group Model Role
Assign or update a model role for a user group.
- Assign Or Update User Model Role
Assign or update a model role for a user.
- Migrate A Model
Copy a model from one Omni connection to another by reading the source model's YAML at a specific Git ref and writing it to the target model.
- Open Or Close A Branch To Viewers
Opening a branch with this endpoint requires permission to edit every model in the branch.
- Read Query Results By Offset
Read a completed job's stored result by raw byte offset.
- Wait For Query Results
Poll for the results of one or more query jobs.
- Run Query
Run the semantic query specified in the request body.
- Manage Email-Only User
Create or update an email-only user.
- Restore Schedule
Restore a schedule out of the trash.
- Trigger Schedule
Trigger the execution of a schedule on demand, outside of its regular schedule.
- Pause Schedule
Pause a schedule.
- Resume Schedule
Resume a schedule.
- Transfer Schedule Ownership
Transfer ownership of a schedule from one user to another user in the same organization.
- Bulk Manage Email-Only Users
Create or update up to 20 email-only users.
- Bulk Delete Email-Only Users
Delete up to 100 email-only users in a single request, identified by ID, by email, or a mix of both.
- Replace Upload Data
Organization Admin permissions are required to use this endpoint.
- Replace User
Replace the specified user.
- Replace User Group
Replace the specified user group.
- Switch An Attribute Value For The Current User
Switches a user attribute value for the calling user.
- Clear A Switched Attribute Value For The Current User
Clear the calling user's switch for a user attribute, restoring the administrator-assigned value.
Set Up Your Omni Analytics MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Omni Analytics in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Platform Resources
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, the security risks they share, and when to use one, both or a hybrid.
12 min
MCP vs API: What Hundreds of Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building hundreds of connectors that serve both, here's when each approach wins.
14 min read
FAQ
Omni Analytics MCP Server FAQ
origin_owner_id.