Tailpipe Model Context Protocol (MCP) Server logo

Tailpipe Model Context Protocol (MCP) Server

Organization
turbot

Enable AI assistants to explore and query your Tailpipe data!

Publisherturbot
Repositorytailpipe-mcp
LanguageTypeScript
Forks
2
Stars
7
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Tailpipe Model Context Protocol (MCP) Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    7 stars and 2 forks from the linked repository.

Tailpipe Model Context Protocol (MCP) Server

Unlock the power of AI-driven log analysis with Tailpipe! This Model Context Protocol server seamlessly connects AI assistants like Claude to your cloud and SaaS logs, enabling natural language exploration and analysis of your entire data estate.

Tailpipe MCP bridges AI assistants and your log data, allowing natural language:

  • Queries across CloudTrail, Kubernetes, and other cloud service logs
  • Security incident investigation and analysis
  • Cost and performance insights
  • Query development assistance

Works with your local Tailpipe init SQL scripts, providing safe, read-only access to all your cloud and SaaS log data.

Installation

Prerequisites

Configuration

Add Tailpipe MCP to your AI assistant's configuration file:

json
{
  "mcpServers": {
    "tailpipe": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/tailpipe-mcp"
      ]
    }
  }
}

By default, this will use the Tailpipe CLI to discover your init SQL script. Make sure Tailpipe is installed and configured first.

To connect to a specific init SQL script instead, add the path to the args:

json
{
  "mcpServers": {
    "tailpipe": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/tailpipe-mcp",
        "/path/to/your/tailpipe_init_YYYYMMDDHHMMSS.sql"
      ]
    }
  }
}

AI Assistant Setup

AssistantConfig File LocationSetup Guide
Claude Desktopclaude_desktop_config.jsonClaude Desktop MCP Guide →
Cursor~/.cursor/mcp.jsonCursor MCP Guide →

Save the configuration file and restart your AI assistant for the changes to take effect.

Prompting Guide

Ask anything about your log data!

Explore your log data:

What tables do we have available in Tailpipe?

Simple, specific questions work well:

Show me all S3 bucket creation events from CloudTrail in the last 24 hours

Generate security reports:

What were my top 10 AWS services by cost last month?

Dive into incident analysis:

Find any IAM users created outside working hours (9am-5pm) in the last week

Get timeline insights:

Give me a timeline of the session where Venu created the IAM access key

Explore potential risks:

Analyze our cloudtrail errors for any specific security risks

Remember to:

  • Be specific about the time period you're interested in
  • Mention the type of data you want to analyze (CloudTrail events, cost data, etc.)
  • Start with simple queries before adding complex conditions
  • Use natural language - the LLM will handle the SQL translation
  • Be bold and exploratory, it's amazing what the LLM will discover and achieve!

Capabilities

Tools

Database Operations:

  • tailpipe_query
    • Run a read-only Tailpipe SQL query using DuckDB syntax
    • Input: sql (string): The SQL query to execute
  • tailpipe_connect
    • Initialize or refresh the DuckDB session from a Tailpipe init SQL script
    • Optional input: init_script_path (string): Path to the init SQL script to use. If not provided, refreshes the current connection.

Data Structure Operations:

  • tailpipe_partition_list

    • List all available Tailpipe partitions with simple statistics
    • No input parameters required
  • tailpipe_partition_show

    • Show details of a specific Tailpipe partition
    • Input: name (string): Name of the partition to show details for
  • tailpipe_table_list

    • List all available Tailpipe tables
    • No input parameters required
  • tailpipe_table_show

    • Show details of a specific Tailpipe table and its columns
    • Input: name (string): Name of the table to show details for

Plugin Operations:

  • tailpipe_plugin_list

    • List all Tailpipe plugins installed on the system
    • No input parameters required
  • tailpipe_plugin_show

    • Get details for a specific Tailpipe plugin installation
    • Input: name (string): Name of the plugin to show details for

Source Operations:

  • tailpipe_source_list

    • List all Tailpipe sources available on the system
    • No input parameters required
  • tailpipe_source_show

    • Get details for a specific Tailpipe source
    • Input: name (string): Name of the source to show details for

Resources

  • status
    • Represents the current state of the Tailpipe connection
    • Properties include:
      • Init script path in use
      • Server configuration
      • Runtime environment

This resource enables AI tools to check and verify the connection status to your Tailpipe session.

Development

Clone and Setup

  1. Clone the repository and navigate to the directory:
sh
git clone https://github.com/turbot/tailpipe-mcp.git
cd tailpipe-mcp
  1. Install dependencies:
sh
npm install
  1. Build the project:
sh
npm run build

Testing

To test your local development build with AI tools that support MCP, update your MCP configuration to use the local dist/index.js instead of the npm package. For example:

json
{
  "mcpServers": {
    "tailpipe": {
      "command": "node",
      "args": [
        "/absolute/path/to/tailpipe-mcp/dist/index.js",
        "/path/to/your/tailpipe_init_YYYYMMDDHHMMSS.sql"
      ]
    }
  }
}

Or, use the MCP Inspector to validate the server implementation:

sh
npx @modelcontextprotocol/inspector dist/index.js

Environment Variables

The following environment variables can be used to configure the MCP server:

  • TAILPIPE_MCP_INIT_SCRIPT_PATH: Specify the Tailpipe init SQL script path (alternative to command line argument)
  • TAILPIPE_MCP_LOG_LEVEL: Control logging verbosity (default: info)
    • debug: Show all messages (most verbose)
    • info: Show informational, warning, and error messages
    • warn: Show only warning and error messages
    • error: Show only error messages
  • TAILPIPE_MCP_MEMORY_MAX_MB: Maximum memory buffer size in megabytes for command execution

Open Source & Contributing

This repository is published under the Apache 2.0 license. Please see our code of conduct. We look forward to collaborating with you!

Tailpipe is a product produced from this open source software, exclusively by Turbot HQ, Inc. It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but they cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our Open Source FAQ.

Get Involved

Join #tailpipe on Slack →

Want to help but don't know where to start? Pick up one of the help wanted issues:

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "turbot-tailpipe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/tailpipe-mcp"
      ]
    }
  }
}

Use Tailpipe Model Context Protocol (MCP) Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Tailpipe Model Context Protocol (MCP) Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Tailpipe Model Context Protocol (MCP) Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Tailpipe Model Context Protocol (MCP) Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "turbot-tailpipe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/tailpipe-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Tailpipe Model Context Protocol (MCP) Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Tailpipe Model Context Protocol (MCP) Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Tailpipe Model Context Protocol (MCP) Server to help me with this task?
Tailpipe Model Context Protocol (MCP) Server
Sure. I read it.
Here is what I found using Tailpipe Model Context Protocol (MCP) Server.

Frequently asked questions

What is the Tailpipe Model Context Protocol (MCP) Server MCP server used for?

Tailpipe Model Context Protocol (MCP) Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Tailpipe Model Context Protocol (MCP) Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Tailpipe Model Context Protocol (MCP) Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Tailpipe Model Context Protocol (MCP) Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Tailpipe Model Context Protocol (MCP) Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Tailpipe Model Context Protocol (MCP) Server MCP to TypingMind?

Tailpipe Model Context Protocol (MCP) Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Tailpipe Model Context Protocol (MCP) Server MCP provide in TypingMind?

Tailpipe Model Context Protocol (MCP) Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Tailpipe Model Context Protocol (MCP) Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Tailpipe Model Context Protocol (MCP) Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇