How the Security Onion MCP server lets your AI platform query events and playbooks
The Security Onion MCP server lets your own AI platform query Security Onion events, using Onion Query Language, and read its playbooks. It is a separate application maintained in the Security-Onion-Solutions/securityonion-mcp repository, not a feature of the Security Onion Console, so it has its own build, configuration and upgrade cycle. Teams usually need it when a security team has an approved, internally hosted LLM platform and wants analysts or automation on that platform to answer questions from Security Onion data without copying logs into a third-party tool. Read the Security Onion MCP server docs before scoping the work.
The server depends on the Security Onion API, which is part of Security Onion Pro. A free-edition grid cannot use this integration as described, so the licensing decision comes before any architecture work. Confirm with Security Onion Solutions which Pro terms and version your grid needs, and confirm that the API and MCP server support your deployment type and operating system before you commit to a design. Plan for the Pro license as a recurring cost tied to the term you choose, and ask your vendor what support is included.
Authentication is handled through a Security Onion API client, so the MCP server never uses an administrator's personal login. Create a dedicated client and grant only the permissions the use case needs, such as events/read, playbooks/read and detections/read. Leave out write scopes unless you have a specific, approved need for them. Decide who owns the client, how its secret is stored and rotated, and how you will log and review the queries your AI platform sends. Those choices define the blast radius if the LLM platform or its integration is compromised.
How an AI platform request reaches Security Onion through the MCP server
The request starts in your in-house AI platform, which calls the Security Onion MCP server running in your network. The MCP server authenticates to the Security Onion API with a dedicated API client, so the client credentials sit on the MCP server side of the trust boundary and never in the AI platform's prompts. The API then queries the grid, where events and playbooks are read under the permissions you granted. Check that the API client holds only the read scopes the use case needs, and that the boundary is where your network controls expect it.
Requests cross from the client network into the Security Onion console through the MCP server and API.
Which MCP access pattern fits your environment
This table compares how to scope the Security Onion API client and where the MCP server runs relative to the manager. Read each row as a decision: the left column names the choice, and the cells show when it fits and what it does to auditability and blast radius. The main takeaway is that narrow, per-platform clients on a separate host make misuse easier to trace and contain, at the cost of more setup and more permissions to review.
| Configuration choice | When it fits | Trade-off in auditability | Trade-off in blast radius |
|---|---|---|---|
| Read-only client (events/read and playbooks/read) | Assistants that answer questions about alerts and run investigations without changing anything | Each request maps to one narrow identity, so logs show exactly what the assistant read | A leaked token exposes event and playbook data but cannot change detections or other settings |
| Add detections/read | Only when the assistant must explain or reference how a detection is configured | Adds a second read scope to review, so access reviews should record why it was granted | Exposes rule logic in addition to events, which can reveal detection coverage to anyone holding the token |
| One API client per AI platform | Several AI platforms or teams use the MCP server, and you need to revoke one without affecting the others | Activity can be attributed to a specific platform, which simplifies investigation | Each client is a separate secret to store, rotate and retire, so more credentials need management |
| Shared API client across platforms | A single pilot or small deployment where one owner manages all AI access | Harder to tell which platform made a query, so audit trails need extra context | One compromised credential affects every platform that uses it |
| MCP server on the manager network | The MCP server reaches the manager directly and the network path is already tightly controlled | Fewer network hops to log, but the server shares a trust zone with core grid components | A compromise of the MCP host sits close to the manager, so network segmentation rules matter more |
| MCP server on a separate host | The AI platform lives in a different network zone and access must cross a controlled boundary | Firewall and proxy logs add a second record of each connection, which supports investigation | Compromise is contained to the MCP host and its allowed paths, though the host still needs patching and hardening |
Setting up the MCP connection step by step
This sequence takes a Pro-licensed Security Onion grid from an API-enabled state to an in-house AI platform that can query events and playbooks through a narrowly scoped client. Each step ends with a check that confirms the connection works and that the limits hold.
Confirm the Pro license and enable the API
Confirm that your grid runs Security Onion Pro, because the MCP server depends on the Pro-only Security Onion API. An administrator then enables the API in the Security Onion Console. Check the Pro documentation for the exact enablement procedure in your version. The step is done when the API endpoint responds to an authenticated request from the console host and the license status shows as active.
Create a dedicated API client
Create a separate API client for the MCP server rather than reusing an analyst's credentials or an existing automation client. A dedicated client gives you its own audit trail and lets you revoke access to the AI platform without affecting other integrations. Record the client identifier and secret in your secrets store, not in a shared document. The step is done when the client appears in the console's list with no permissions yet assigned.
Grant only the permissions the use case needs
Assign the narrowest permissions that support the questions the AI platform must answer. The MCP server documentation names examples such as events/read, playbooks/read and detections/read. Leave out write scopes and any scope the use case does not need, and confirm the exact scope names in the current documentation before you assign them. The step is done when the granted list matches a written access decision approved by the security owner.
Verify that permitted and denied scopes behave as intended
Before you connect any AI platform, test the client directly against the API. Run one query the granted scopes should allow, such as an OQL event search, and confirm it returns results. Then attempt an action outside the granted scopes, such as a write to detections, and confirm it is refused. The step is done when the permitted call succeeds and the denied call fails with an authorization error. Keep both results as evidence for your review.
Obtain the securityonion-mcp server from GitHub
Get the MCP server from the separate Security-Onion-Solutions/securityonion-mcp repository, not from the main Security Onion repository. Review the release you plan to use, its license and its dependencies, and pin a specific version or commit for your environment. Build or install it on a host that your AI platform can reach but that is not the Security Onion manager. The step is done when you can start the server and it reports its version without connecting to any external service you did not expect.
Configure the server to use the dedicated client
Set the MCP server's configuration so it authenticates with the dedicated API client, using the Security Onion endpoint and credentials stored in your secrets store. Confirm the exact configuration keys in the repository documentation. Restrict network access so only the AI platform and the Security Onion API can reach the server. The step is done when the server authenticates successfully and its logs show the dedicated client identifier, not an analyst account.
Connect the in-house AI platform and retest
Register the MCP server with your in-house AI platform, following that platform's tool configuration. Then run a test prompt that asks for events the granted scopes allow, and a second prompt that asks for a playbook change the scopes forbid. The step is done when the first returns results, the second is refused, and both requests appear in the Security Onion audit records under the dedicated client. Repeat these checks after every upgrade of either side.
Security controls for an AI platform querying security data
An AI platform that queries Security Onion reads sensitive detection and event data, and it can be driven by people and prompts you do not fully control. The cards below cover the access, credential, network, logging and data-handling controls to settle before connecting the MCP server, and each one names what to confirm in the vendor documentation.
Least-privilege API clients
Create a dedicated Security Onion API client for the MCP server and grant only the permissions it needs, such as events/read, playbooks/read and detections/read. Do not reuse an analyst's client or grant write scopes the assistant does not require. Review the granted scopes against the MCP server documentation before each release change, because a client with broader scopes widens what an AI-issued query can reach.
MCP server docsCredential storage and rotation
Store the API client secret in your existing secrets manager and inject it into the MCP server at runtime, not into configuration files or prompt templates the model platform can display. Set a rotation schedule and a documented procedure for revoking the client if the AI platform or host is compromised. Confirm with the Security Onion documentation how tokens are issued and how long they remain valid, and plan refresh handling around that lifetime.
Network placement of the MCP server
Place the MCP server on a segment that can reach the Security Onion API and nothing else it does not need. Restrict inbound connections to the AI platform's service address and restrict outbound traffic from the server to the Security Onion manager. Keep the Security Onion console and the AI platform's administrative interfaces on separate paths, so a compromise of one does not give direct access to the other.
Logging and review of AI-issued queries
Record every query the assistant issues, including the Onion Query Language text, the time, the client identity and the requesting user or session. Review a sample of these queries on a fixed schedule to spot unexpected scope, such as broad searches across all sensors or repeated retrieval of sensitive fields. Confirm in the documentation which events the Security Onion API and MCP server log by default, and where the AI platform must add its own record.
Restricting who can use the AI platform
Limit access to the AI platform to named analysts who already hold the matching Security Onion role, so the assistant cannot answer questions their own access would not allow. Enforce this through single sign-on on the AI platform and map groups to roles, rather than sharing one platform account across the team. Review membership when analysts change roles or leave the SOC.
Treating query results as sensitive data
Security events can contain internal addresses, hostnames, usernames, file names and parts of payloads, so treat returned results as sensitive before they reach a hosted model. Decide which fields and time ranges the workflow actually needs, limit result sizes, and confirm where your AI provider stores prompts and outputs and whether it trains on them. For a hosted model, record that data leaves your boundary; for a local model, record where the inference runs.
Questions teams ask before connecting an LLM platform to Security Onion
Is the Security Onion MCP server included in the free edition?
No. The MCP server is a Security Onion Pro feature, and the Pro edition is a paid product sold on 1 to 5 year terms. The MCP server also depends on the Pro-only Security Onion API, so a free Security Onion installation cannot expose events or playbooks to an outside AI platform through this route. Before planning, confirm the current Pro feature list and license terms directly with Security Onion Pro, since the edition contents are set by the vendor and can change.
What does the work need from our internal team?
The work needs people who can run the Security Onion grid, people who own the AI platform, and someone who can approve access. On the Security Onion side, an administrator enables the API, creates an API client and sets its permissions. On the AI side, engineers configure the platform to call the separate MCP server and handle its credentials. Security or compliance staff should review which events, playbooks and detections the AI platform may read, because that decision defines the exposure. Ask any partner to confirm which of these roles they will carry and which must stay with your team.
How does effort change with more permissions and more AI platforms?
Effort rises with each permission granted and each separate AI platform connected. The MCP server authenticates with an API client limited to the permissions it needs, such as events/read, playbooks/read and detections/read, so every additional scope needs a justification, a test and a record. Each AI platform that connects is another credential, another trust boundary and another set of logs to review. Ask for the number of clients, the permission matrix and the test cases covering each platform in any quote, because these are the main drivers of scope.
Can we connect the MCP server without outside help?
Yes, if your team already runs Security Onion and has the Pro license and administrative skills to configure the API. The MCP server is a separate application maintained in the Security-Onion-Solutions/securityonion-mcp repository, so your engineers must deploy and maintain it alongside the grid. Teams without experience with OAuth client credentials, API permissions or the Security Onion query language often take longer to validate access and find issues. An outside partner adds value mainly when the scope includes testing, documentation for auditors or integration with an existing identity and secrets system.
How do one to five year Pro license terms affect our planning?
Pro is sold on 1 to 5 year terms, so the term you choose sets when the MCP dependency must be renewed and when the AI integration may need a new decision. A longer term spreads the license over more years but commits budget and the architecture built around Pro features earlier. Plan the renewal date alongside your Security Onion upgrade path, because version support also changes over time. Security Onion 2.4 reached end of life on October 1, 2026, so an integration built on an older release may need migration before the term ends.
What does a quote for this work depend on?
A quote follows from a written scope, so it depends on the Security Onion grid layout, the number of API clients and permissions, the number of AI platforms, the data each platform may query and the testing and documentation you require. Ask for each of these to be listed as its own line item, with what is one-time and what recurs, such as license renewals and ongoing support. Confirm which Pro license term you hold or plan to buy, since that cost is paid to the vendor and sits outside any services quote. DeployOpen does not publish a price list, so every figure comes from the agreed scope.
What should we test before giving an AI platform query access?
Test that each API client can read only the permissions granted to it, that the AI platform cannot reach events, playbooks or detections outside that scope, and that credentials are stored and rotated according to your policy. Confirm that queries and access are logged so reviewers can trace what the AI platform retrieved. Check how the AI platform handles returned event data, including storage and retention in its own logs. Run these checks on a non-production grid first, and record the results so security reviewers can see the evidence.
Where to read the MCP server documentation
Start with the Security Onion MCP server documentation, because it defines what the server exposes, how it authenticates and which API client permissions it expects. Read it before the Pro page so you know which Security Onion capabilities the integration depends on. The Security Onion docs: MCP server page is the natural first read. Confirm three things there: the tools and query types the server offers (event queries in Onion Query Language and playbook queries), the exact permission names the API client needs, and the supported deployment and transport options for your platform. Record the version of the documentation you read, since the server is a separate application maintained in its own repository and its setup steps may change independently of the Security Onion release.
Then read the Security Onion Pro page to confirm licensing before you commit to a design. The server depends on the Pro-only Security Onion API, so the Pro edition, its 1 to 5 year terms and the list of Pro features need to be checked against your procurement process. Ask the vendor which Pro features are included in your quote, whether the MCP server and API are both covered, and how renewals work. The Security Onion Pro page is where those terms and the feature list are published, so compare it with your own requirements rather than relying on a summary.
Finally, check the two documents against your environment. Confirm that your Security Onion version is one the MCP documentation covers, and note the end-of-life dates for any version you run, since 2.4 reaches end of life on October 1, 2026. Also confirm the repository and release you plan to deploy, and whether your security team has reviewed the permissions list before any API client is created. Write these checks into the change record so the integration team and the security owner agree on the same baseline before build starts.
How DeployOpen scopes and supports an MCP integration
DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, and an MCP connection to Security Onion is handled the same way. The work starts with a written scope that covers the Pro licensing, the API client, the permissions your AI platform needs and the server deployment.
How we scope
- Confirm your Security Onion edition and whether Pro licensing covers the Security Onion API and MCP server before build work starts
- Map which events, playbooks and detections your AI platform needs, and set the matching read permissions for the API client
- Agree in writing which grid, network segment and AI platform components are in scope, since engagements are fixed-scope
How we build
- Deploy the separate MCP server from its GitHub-hosted repository inside your infrastructure, with the API client credentials stored in your secrets handling
- Connect the server to your in-house AI platform and test that queries using Onion Query Language return the expected events and playbooks
- Run security testing on the integration, checking the permission scope, credential handling and what data the AI platform can expose
How we hand over
- Deliver written documentation of the API client, its permissions, the server configuration and the data flows between systems
- Provide a findings report with fixes and a retest where testing identifies gaps in access or data exposure
- Walk your security and platform teams through the setup so they can review and operate it on their own
How we support
- Offer ongoing support, upgrades and continuous testing for the MCP integration as a retainer, if your team wants it
- Plan changes to the MCP server and Security Onion versions alongside your upgrade schedule, with the scope agreed in writing
- Review API client permissions again when you add new AI use cases or change which events the platform should reach

