Tenzir MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tenzir MCP Server run a pipeline to detect brute force attempts from the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
βοΈ Tenzir MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with Tenzirβa data pipeline engine for security operations.
This MCP server provides tools for executing pipelines written in the Tenzir Query Language (TQL)), working with Open Cybersecurity Schema Framework (OCSF), managing packages, generating parsers, and exploring documentation.
β¨ Features
Pipeline Execution: Run TQL pipelines and tests
Documentation Access: Search and browse embedded Tenzir documentation with cross-reference support
OCSF Integration: Query and work with OCSF definitions, event classes, objects, and profiles.
Package Management: Create and manage Tenzir packages with operators, pipelines, enrichment contexts, and tests
Code Generation: Auto-generate TQL parsers and OCSF mapping packages
Related MCP server: fivetran-mcp
π¦ Installation
Use Docker as the fastest way to get started:
docker run -i tenzir/mcpOr use uvx when you have a local Tenzir
installation:
uvx tenzir-mcpπ Documentation
Consult our setup guide for installation and MCP client configuration.
We also provide a reference that explains usage and available tools.
π€ Contributing
Want to contribute? We're all-in on agentic coding with Claude Code! The repo comes pre-configured with our custom pluginsβjust clone and start hacking.
π License
This project is licensed under the Apache License 2.0.
Available Tools
15 toolsdocs_readRead documentationARead-onlyIdempotent
Read documentation content from the embedded Tenzir documentation.
Use this tool to:
Read operator documentation BEFORE using any TQL operator
Read function documentation BEFORE using any TQL function
Study tutorials and guides for learning workflows
Inputs: path (required).
docs_searchSearch documentationARead-onlyIdempotent
Search documentation by keyword or retrieve specific paths with 'See Also' expansion.
Use this tool to:
Find operators or functions by keyword or query phrase
Discover related documentation through 'See Also' links (
depth> 0)Explore specific documentation areas (
search_typefilter)Learn about unfamiliar concepts or workflows
The depth parameter traverses cross-references, helping you discover operators and functions you might not have known about.
Inputs: depth, limit, paths, query, +1 more.
make_ocsf_mappingAdd OCSF mapping to parserAIdempotent
Add OCSF mapping to a TQL parsing pipeline.
Use this tool when:
You need to map security logs to the OCSF standard
You're normalizing data from multiple sources into a common schema
You want to make your data compatible with OCSF-aware tools
You need guidance on OCSF class selection and field mapping
Follow the workflow instructions provided in the response.
Inputs: sample (required), ctx.
make_parserGenerate a TQL parserAIdempotent
Generate a TQL parser for the given log format.
Use this tool when:
You have sample log events and need to parse them into structured data
You're starting a new parser for JSON, CSV, syslog, or key-value logs
You want guidance on format detection and TQL operator selection
You need to infer types and create proper schema transformations
This tool provides a complete workflow with step-by-step instructions for:
Analyzing log format and structure
Selecting appropriate TQL operators
Generating parsing code with type conversions
Creating a package with the parser
Testing the parser with sample data
Follow the workflow instructions provided in the response.
Inputs: sample (required), ctx.
ocsf_get_classGet OCSF event classARead-onlyIdempotent
Get the complete definition of a specific OCSF event class including all fields and metadata.
Use this tool to:
Understand the full schema of an OCSF event class before mapping
See required vs optional fields
Discover nested object structures and their field definitions
Validate that your source data can map to the class
This returns the complete class definition including all attributes, types, and constraints needed to create accurate OCSF mappings.
Inputs: name (required), version (required).
ocsf_get_classesList OCSF event classesARead-onlyIdempotent
Get all OCSF event classes and their descriptions for a specific schema version.
Use this tool to:
Browse available OCSF event classes before creating a mapping
Identify which class best matches your log data
Understand the purpose and scope of each event class
Once you identify a candidate class, use ocsf_get_class to see its
complete schema with all fields and attributes.
Inputs: version (required).
ocsf_get_latest_versionGet latest OCSF versionARead-onlyIdempotent
Return the latest stable OCSF schema version.
Use this tool to:
Get the current recommended OCSF version for new mappings
Ensure you're using up-to-date schema definitions
Start OCSF mapping workflows with the latest standard
This filters out development versions (alpha, beta, rc) and returns only stable releases.
Inputs: no named parameters.
ocsf_get_objectGet OCSF objectARead-onlyIdempotent
Get the complete definition of an OCSF object type including all fields and metadata.
Use this tool to:
Understand complex nested object structures in OCSF classes
See the fields and types within objects like 'file', 'process', 'user'
Map source data to nested OCSF structures correctly
Reference when constructing TQL operators for OCSF mapping
Objects are reusable components within OCSF event classes, defining standard structures like endpoints, files, processes, etc.
Inputs: name (required), version (required).
ocsf_get_versionsList OCSF versionsARead-onlyIdempotent
List all bundled OCSF schema versions.
Use this tool to:
See which OCSF schema versions are available
Choose a specific version for your mapping work
Understand schema evolution across versions
Typically you'll want to use ocsf_get_latest_version instead to get
the most recent stable version automatically.
Inputs: no named parameters.
package_add_changelogAdd changelog entry to packageA
Add a changelog entry to a package.
Use this tool to:
Document changes to your package
Track breaking changes, new features, bug fixes, and general changes
Maintain a history of package evolution
Communicate updates to package users
Changelog entries are timestamped and categorized. They help users understand what changed between package versions.
Inputs: type (required), description (required), package_dir (required), author.
package_add_operatorAdd operator to packageA
Add a user-defined operator (UDO) to a package.
Use this tool to:
Add custom TQL operators to your package
Organize operators using nested namespaces (e.g., 'ocsf::logs::firewall')
Create parsers, transformations, or OCSF mappings as reusable operators
Automatically generate test scaffolds for new operators
Operators become available as package_id::operator_name in TQL pipelines after the package is installed.
Inputs: code (required), name (required), description (required), package_dir (required), +1 more.
package_add_testAdd test to packageA
Add a test to a package.
Use this tool to:
Create test cases for your operators
Define expected behavior with input/output pairs
Set up integration tests with fixtures (e.g., embedded Tenzir nodes)
Generate test scaffolds to be populated later with run_test
Tests use the tenzir-test framework. Provide input/output when known,
or omit output and use the run_test tool with update=True to generate
baselines from actual execution.
Inputs: test (required), package_dir (required), input, output, +3 more.
package_createCreate packageA
Create a new Tenzir package scaffold.
Use this tool to:
Start a new Tenzir package project
Set up the standard directory structure for operators, tests, and documentation
Initialize package metadata (ID, name, author, description)
This creates the foundation for building custom TQL operators, parsers,
and OCSF mappings. After creation, use package_add_operator to add
functionality and package_add_test to add tests.
Inputs: package_dir (required), ctx.
run_pipelineRun TQL pipelineA
Execute a TQL pipeline through the local tenzir binary.
Use this tool to:
Test TQL code before adding it to a package
Debug pipeline behavior with sample data
Verify operator syntax and semantics
Iterate quickly on pipeline development
The pipeline runs with diagnostics enabled, providing detailed error messages and warnings to help troubleshoot issues.
Inputs: is_file (required), pipeline (required), max_execution_time.
run_testRun Tenzir testsAIdempotent
Run tests for TQL pipelines using the tenzir-test framework.
Use this tool to:
Verify package operators work correctly
Run regression tests after making changes
Generate test baselines (with update=True)
Debug failing tests (with passthrough=True)
Tests can include fixtures like embedded Tenzir nodes for integration testing.
The selection parameter accepts files, directories, or an empty list for all tests.
Inputs: root (required), selection (required), ctx, update, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 15 tools
Every tool has a distinct purpose: parsing, mapping, documentation lookup, pipeline execution, testing, OCSF schema access, and package management. The five ocsf_get_* tools are clearly differentiated by what they retrieve (classes, class, object, versions, latest version), and the docs_* and package_* tools have non-overlapping roles.
All tool names follow a consistent verb_noun pattern in snake_case: make_parser, make_ocsf_mapping, docs_read, docs_search, run_pipeline, run_test, ocsf_get_class, package_create, etc. Domain prefixes (docs_, ocsf_, package_) are used uniformly, making the naming predictable and easy to navigate.
15 tools is well within the ideal 3-15 range and matches the server's broad scope of documentation, OCSF schema exploration, package scaffolding, pipeline execution, and testing. Each tool earns its place without redundancy or bloat.
The tool set covers the full development lifecycle: create a package, add operators, tests, and changelogs, parse and map data, run pipelines, run tests, and consult documentation. Minor gaps exist for package management operations like listing or deleting existing components, and there is no tool to edit an existing operator directly, but these are not dead ends for the main workflow.
Maintenance
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for OpenSearch that enables AI assistants to interact with OpenSearch clusters through a standardized interface for search, index management, and cluster operations.930,799 PyPI158Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server for controlling Fivetran data pipelines. Enables AI assistants to manage syncs, monitor connection status, and control pipelines through natural language.1590 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants the ability to connect to, query, profile, and monitor data sources β turning any LLM into an interactive data engineering copilot.MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to query and explore your OpenObserve observability data. Provides read-only access to logs, metrics, and traces for analysis and troubleshooting.5MIT