Skip to main content
Glama
Tenzir MCP Server

Tenzir MCP Server

by fastmcp-me

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

βš™οΈ Tenzir MCP Server

PyPI License

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/mcp

Or 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 tools
docs_readRead documentationA
Read-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).

make_ocsf_mappingAdd OCSF mapping to parserA
Idempotent

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 parserA
Idempotent

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:

  1. Analyzing log format and structure

  2. Selecting appropriate TQL operators

  3. Generating parsing code with type conversions

  4. Creating a package with the parser

  5. Testing the parser with sample data

Follow the workflow instructions provided in the response.

Inputs: sample (required), ctx.

ocsf_get_classGet OCSF event classA
Read-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 classesA
Read-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 versionA
Read-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 objectA
Read-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 versionsA
Read-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 testsA
Idempotent

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

    A4.2/5.0

    Scored across 15 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      MCP server for OpenSearch that enables AI assistants to interact with OpenSearch clusters through a standardized interface for search, index management, and cluster operations.
      9
      30,799 PyPI
      158
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for controlling Fivetran data pipelines. Enables AI assistants to manage syncs, monitor connection status, and control pipelines through natural language.
      15
      90 PyPI
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      An 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.
      5
      MIT