Steampipe

by b0ttle-neck

293 downloads
Not rated
GitHub

Description

# Steampipe MCP This is a simple steampipe MCP server. This acts as a bridge between your AI model and Steampipe tool. ## Pre-requisites - Python 3.10+ installed. - uv installed (my fav) and mcp[cli] - Steampipe installed and working. - Steampipe plugin configured (e.g., github)…

About

# Steampipe MCP This is a simple steampipe MCP server. This acts as a bridge between your AI model and Steampipe tool. ## Pre-requisites - Python 3.10+ installed. - uv installed (my fav) and mcp[cli] - Steampipe installed and working. - Steampipe plugin configured (e.g., github) with necessary credentials (e.g., token…

Details

Author
b0ttle-neck
Downloads
293
Categories
Other

- Exposes a single run_steampipe_query tool to the AI model
- Translates natural language requests into Steampipe SQL queries
- Works with any Steampipe plugin (e.g., GitHub) configured locally
- Supports the MCP Inspector for testing and debugging
- Requires only standard MCP and Steampipe infrastructure

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Steampipe
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install prerequisites (Python 3.10+, uv, Steampipe with a configured plugin), then run the MCP Inspector with npx -y @modelcontextprotocol/inspector uv --directory . run steampipe_mcp_server.py. After verifying the tool works, add the server configuration to your MCP-supporting LLM (e.g., Claude) and select the run_steampipe_query tool from the LLM interface.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "steampipe": {
            "steampipe": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/Users/yourname/dev/mcp-steampipe",
                    "run",
                    "steampipe_mcp_server.py"
                ],
                "env": []
            }
        }
    }
}

McpServers

{
    "steampipe": {
        "command": "uv",
        "args": [
            "--directory",
            "/Users/yourname/dev/mcp-steampipe",
            "run",
            "steampipe_mcp_server.py"
        ],
        "env": []
    }
}

Steampipe MCP

This is a simple steampipe MCP server. This acts as a bridge between your AI model and Steampipe tool.

Pre-requisites

- Python 3.10+ installed. - uv installed (my fav) and mcp[cli] - Steampipe installed and working. - Steampipe plugin configured (e.g., github) with necessary credentials (e.g., token in ~/.steampipe/config/github.spc). - Any LLM supporting MCP. I am using Claude Here. - Node.js and npx installed (required for the MCP Inspector and potentially for running some MCP servers).

Running MCP Interceptor

This is an awesome tool for testing your if your MCP server is working as expected - Running the Interceptor ``npx -y @modelcontextprotocol/inspector uv --directory . run steampipe_mcp_server.py` - A browser window should open with the MCP Inspector UI (usually at http://localhost:XXXX). - Wait for the "Connected" status on the left panel. - Go to the Tools tab. - You should see the run_steampipe_query tool listed with its description. - Click on the tool name. - In the "Arguments" JSON input field, enter a valid Steampipe query: ` { "query": "select name, fork_count from github_my_repository " } ` - execute and view the json results

Running the tool

Pretty straightforward. Just run the interceptor and make sure the tool is working from the directory. Then add the server configuration to the respective LLM and select the tool from the LLM. Screenshot 2025-04-06 at 11 53 23 PM Screenshot 2025-04-06 at 11 55 21 PM

TroubleShooting

- If the tool is not found in the interceptor then that means @mcp.tool() decorator has some issue. - Execution error - Look at the "Result" in the Inspector and the server logs (stderr) in your terminal. Did Steampipe run? Was there a SQL error? A timeout? A JSON parsing error? Adjust the Python script accordingly.
` tail -f ~/Library/Logs/Claude/mcp.log tail -f ~/Library/Logs/Claude/mcp-server-steampipe.log `` Security Risk Claude blindly executes your sql query in this POC so there is possibility to generate and execute arbitary SQL Queries via Steampipe using your configured credentials.
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.