Steampipe Model Context Protocol (MCP) Server logo

Steampipe Model Context Protocol (MCP) Server

Organization
turbot

Enable AI assistants to explore and query your Steampipe data!

Publisherturbot
Repositorysteampipe-mcp
LanguageTypeScript
Forks
8
Stars
46
Available tools
5
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

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

  • 5 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

    46 stars and 8 forks from the linked repository.

Steampipe Model Context Protocol (MCP) Server

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

Steampipe MCP bridges AI assistants and your infrastructure data, allowing natural language:

  • Queries across AWS, Azure, GCP and 100+ cloud services
  • Security and compliance analysis
  • Cost and resource optimization
  • Query development assistance

Works with both local Steampipe installations and Turbot Pipes workspaces, providing safe, read-only access to all your cloud and SaaS data.

Installation

Prerequisites

  • Node.js v16 or higher (includes npx)
  • For local use: Steampipe installed and running (steampipe service start)
  • For Turbot Pipes: A Turbot Pipes workspace and connection string

Configuration

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

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

By default, this connects to your local Steampipe installation at postgresql://steampipe@localhost:9193/steampipe. Make sure to run steampipe service start first.

To connect to a Turbot Pipes workspace instead, add your connection string to the args:

json
{
  "mcpServers": {
    "steampipe": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/steampipe-mcp",
        "postgresql://my_name:my_pw@workspace-name.usea1.db.pipes.turbot.com:9193/abc123"
      ]
    }
  }
}

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

First, run the best_practices prompt included in the MCP server to teach your LLM how best to work with Steampipe. Then, ask anything!

Explore your cloud infrastructure:

What AWS accounts can you see?

Simple, specific questions work well:

Show me all S3 buckets that were created in the last week

Generate infrastructure reports:

List my EC2 instances with their attached EBS volumes

Dive into security analysis:

Find any IAM users with access keys that haven't been rotated in the last 90 days

Get compliance insights:

Show me all EC2 instances that don't comply with our tagging standards

Explore potential risks:

Analyze my S3 buckets for security risks including public access, logging, and encryption

Remember to:

  • Be specific about which cloud resources you want to analyze (EC2, S3, IAM, etc.)
  • Mention regions or accounts if you're interested in specific ones
  • Start with simple queries before adding complex conditions
  • Use natural language - the LLM will handle the SQL translation
  • Be bold and exploratory - the LLM can help you discover insights across your entire infrastructure!

Capabilities

Tools

  • steampipe_query

    • Query cloud and security logs with SQL.
    • For best performance: use CTEs instead of joins, limit columns requested.
    • All queries are read-only and use PostgreSQL syntax.
    • Input: sql (string): The SQL query to execute using PostgreSQL syntax
  • steampipe_table_list

    • List all available Steampipe tables.
    • Optional input: schema (string): Filter tables by specific schema
    • Optional input: filter (string): Filter tables by ILIKE pattern (e.g. '%ec2%')
  • steampipe_table_show

    • Get detailed information about a specific table, including column definitions, data types, and descriptions.
    • Input: name (string): The name of the table to show details for (can be schema qualified e.g. 'aws_account' or 'aws.aws_account')
    • Optional input: schema (string): The schema containing the table
  • steampipe_plugin_list

    • List all Steampipe plugins installed on the system. Plugins provide access to different data sources like AWS, GCP, or Azure.
    • No input parameters required
  • steampipe_plugin_show

    • Get details for a specific Steampipe plugin installation, including version, memory limits, and configuration.
    • Input: name (string): Name of the plugin to show details for

Prompts

  • best_practices
    • Best practices for working with Steampipe data
    • Provides detailed guidance on:
      • Response style and formatting conventions
      • Using CTEs (WITH clauses) vs joins
      • SQL syntax and style conventions
      • Column selection and optimization
      • Schema exploration and understanding
      • Query structure and organization
      • Performance considerations and caching
      • Error handling and troubleshooting

Resources

  • status
    • Represents the current state of the Steampipe connection
    • Properties include:
      • connection_string: The current database connection string
      • status: The connection state (connected/disconnected)

This resource enables AI tools to check and verify the connection status to your Steampipe instance.

Development

Clone and Setup

  1. Clone the repository and navigate to the directory:
sh
git clone https://github.com/turbot/steampipe-mcp.git
cd steampipe-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": {
    "steampipe": {
      "command": "node",
      "args": [
        "/absolute/path/to/steampipe-mcp/dist/index.js",
        "postgresql://steampipe@localhost:9193/steampipe"
      ]
    }
  }
}

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:

  • STEAMPIPE_MCP_LOG_LEVEL: Control server logging verbosity (default: info)
  • STEAMPIPE_MCP_WORKSPACE_DATABASE: Override the default Steampipe connection string (default: postgresql://steampipe@localhost:9193/steampipe)

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!

Steampipe 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 #steampipe on Slack →

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

Installation

TypingMind
{
  "mcpServers": {
    "steampipe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/steampipe-mcp",
        "{{config.CONNECTION_STRING}}"
      ]
    }
  }
}

Available Tools

  • steampipe_query

    Query cloud infrastructure, SaaS, APIs, code and more with SQL.

    Queries are read-only and must use PostgreSQL syntax.

    For best performance: limit columns requested, use materialized CTEs instead of joins. Trust the search path unless sure you need to specify a schema.

    Check available tables and columns before querying using steampipe_table_list and steampipe_table_show.

  • steampipe_table_list

    List all available Steampipe tables. Use schema and filter parameters to narrow down results.

  • steampipe_table_show

    Get detailed information about a specific Steampipe table, including column definitions, data types, and descriptions.

  • steampipe_plugin_list

    List all Steampipe plugins installed on the system. Plugins provide access to different data sources like AWS, GCP, or Azure.

  • steampipe_plugin_show

    Get details for a specific Steampipe plugin installation, including version, memory limits, and configuration.

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

TypingMind connects MCP tools at the workspace level, so once Steampipe 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 Steampipe 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 Steampipe 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": {
    "steampipe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@turbot/steampipe-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Steampipe 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 Steampipe 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 Steampipe Model Context Protocol (MCP) Server to help me with this task?
Steampipe Model Context Protocol (MCP) Server
Sure. I read it.
Here is what I found using Steampipe Model Context Protocol (MCP) Server.

Frequently asked questions

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

Steampipe 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 Steampipe 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 Steampipe 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 Steampipe 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 Steampipe 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 Steampipe Model Context Protocol (MCP) Server MCP to TypingMind?

Steampipe 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 Steampipe Model Context Protocol (MCP) Server MCP provide in TypingMind?

Steampipe Model Context Protocol (MCP) Server exposes 5 MCP tools 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 Steampipe 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 Steampipe 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.

status

Get the current status of the Steampipe connection

best_practices

Best practices for writing Steampipe SQL queries

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 👇