Skip to main content
Glama
mcp-steampipe

mcp-steampipe

by b0ttle-neck

Tubo de vapor MCP

Este es un servidor MCP de Steampipe simple. Actúa como puente entre tu modelo de IA y la herramienta Steampipe.

Prerrequisitos

  • Python 3.10+ instalado.

  • uv instalado (mi favorito) y mcp[cli]

  • Steampipe instalado y funcionando.

  • Complemento Steampipe configurado (por ejemplo, github) con las credenciales necesarias (por ejemplo, token en ~/.steampipe/config/github.spc).

  • ¿Hay algún LLM que admita MCP? Estoy usando Claude Here.

  • Node.js y npx instalados (necesarios para el Inspector MCP y potencialmente para ejecutar algunos servidores MCP).

Related MCP server: mcp-mssql-server

Ejecución del MCP Interceptor

Esta es una herramienta increíble para probar si su servidor MCP está funcionando como se espera.

  • Ejecutando el Interceptor npx -y @modelcontextprotocol/inspector uv --directory . run steampipe_mcp_server.py

  • Debería abrirse una ventana del navegador con la interfaz de usuario del Inspector MCP (normalmente en http://localhost:XXXX ).

  • Espere el estado "Conectado" en el panel izquierdo.

  • Vaya a la pestaña Herramientas.

  • Debería ver la herramienta run_steampipe_query listada con su descripción.

  • Haga clic en el nombre de la herramienta.

  • En el campo de entrada JSON "Argumentos", ingrese una consulta Steampipe válida:

{
  "query": "select name, fork_count from github_my_repository "
}
  • ejecutar y ver los resultados json

Ejecución de la herramienta

Bastante sencillo. Simplemente ejecute el interceptor y asegúrese de que la herramienta funcione desde el directorio. Luego, agregue la configuración del servidor al LLM correspondiente y seleccione la herramienta desde el LLM. Captura de pantalla del 6 de abril de 2025 a las 11:53:23Captura de pantalla del 6 de abril de 2025 a las 11:55 y 21:00 p. m.

Solución de problemas

  • Si la herramienta no se encuentra en el interceptor, eso significa que el decorador @mcp.tool() tiene algún problema.

  • Error de ejecución: Consulta el "Resultado" en el Inspector y los registros del servidor (stderr) en tu terminal. ¿Se ejecutó Steampipe? ¿Hubo un error de SQL? ¿Se agotó el tiempo de espera? ¿Se produjo un error de análisis de JSON? Ajusta el script de Python según corresponda.

tail -f ~/Library/Logs/Claude/mcp.log
tail -f ~/Library/Logs/Claude/mcp-server-steampipe.log

Riesgo de seguridad Claude ejecuta ciegamente su consulta SQL en esta POC, por lo que existe la posibilidad de generar y ejecutar consultas SQL arbitrarias a través de Steampipe usando sus credenciales configuradas.

Available Tools

1 tool
run_steampipe_queryB

Executes a SQL query using the Steampipe CLI and returns the results as a JSON string.

Args: query: The SQL query to execute via Steampipe (e.g., "select login from github_user limit 1"). Ensure the query is valid Steampipe SQL.

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The naming follows a clear verb_noun pattern (run_steampipe_query).

    Tool Count2/5

    A single tool is too few for most practical purposes, as it severely limits the server's functionality and flexibility. While it might cover the basic query execution, it lacks any supporting operations like listing available tables, checking query status, or managing connections.

    Completeness2/5

    The server is severely incomplete for interacting with Steampipe. It only provides query execution, missing essential operations such as listing available plugins/tables, describing table schemas, managing connections, or handling query errors and metadata. This will cause significant agent failures in complex workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with SQLite databases, filesystem, AWS IAM, and Gmail through a master MCP server with a Streamlit UI optimized for Claude.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Code and other MCP clients to interact with Microsoft SQL Server databases through standardized tools for query execution, schema exploration, table management, and stored procedure execution.
      90 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to query a Postgres analytics schema via a read-only MCP server, with tools auto-generated from live database introspection and configurable SQL queries defined in YAML.
      MIT