Skip to main content
Glama

mcp-steampipe

by b0ttle-neck

蒸汽管道 MCP

这是一个简单的 Steampipe MCP 服务器。它充当 AI 模型和 Steampipe 工具之间的桥梁。

先决条件

  • 已安装 Python 3.10+。
  • 安装了 uv(我的最爱)和 mcp[cli]
  • 蒸汽管道已安装并运行。
  • Steampipe 插件已配置(例如,github)并带有必要的凭证(例如,~/.steampipe/config/github.spc 中的令牌)。
  • 任何支持 MCP 的 LLM 都可以。我这里用的是 Claude。
  • 安装了 Node.js 和 npx(MCP Inspector 需要并且可能运行某些 MCP 服务器)。

运行 MCP 拦截器

这是一个非常棒的工具,可以测试您的 MCP 服务器是否按预期运行

  • 运行拦截器npx -y @modelcontextprotocol/inspector uv --directory . run steampipe_mcp_server.py
  • 应打开一个带有 MCP Inspector UI 的浏览器窗口(通常位于http://localhost:XXXX )。
  • 等待左侧面板上的“已连接”状态。
  • 转到“工具”选项卡。
  • 您应该会看到 run_steampipe_query 工具及其描述。
  • 单击工具名称。
  • 在“参数”JSON 输入字段中,输入有效的 Steampipe 查询:
{ "query": "select name, fork_count from github_my_repository " }
  • 执行并查看json结果

运行工具

非常简单。只需运行拦截器并确保该工具在目录中正常运行。然后将服务器配置添加到相应的 LLM,并从 LLM 中选择该工具。 截图于 2025-04-06 11:53 23:00截图于 2025-04-06 11:55 21PM

故障排除

  • 如果在拦截器中找不到该工具,则意味着@mcp.tool() 装饰器存在一些问题。
  • 执行错误 - 查看检查器中的“结果”以及终端中的服务器日志(stderr)。Steampipe 是否运行?是否存在 SQL 错误?超时?JSON 解析错误?请相应地调整 Python 脚本。
tail -f ~/Library/Logs/Claude/mcp.log tail -f ~/Library/Logs/Claude/mcp-server-steampipe.log

安全风险Claude 在此 POC 中盲目执行您的 SQL 查询,因此有可能使用您配置的凭据通过 Steampipe 生成和执行任意 SQL 查询。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

这是为 Steampipe 编写的 MCP。此 Steampipe MCP 工具允许 Claude 使用自然语言请求直接与您的 Steampipe 安装进行交互。它通过 Steampipe CLI 执行提供的 SQL 查询,并将数据结果以 JSON 格式返回给 Claude。

  1. 先决条件
    1. 运行 MCP 拦截器
      1. 运行工具
        1. 故障排除

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            MCP server that integrates with Shopify API, allowing Claude Desktop users to retrieve and manipulate product information from Shopify stores.
            Last updated -
            5
            2
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            An MCP server that enables Claude to interact with Tembo Cloud platform API, allowing users to manage Tembo Cloud resources through natural language.
            Last updated -
            10
            7
            TypeScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            Provides access to Strapi CMS content through the MCP protocol, allowing users to create, read, update, and delete content entries via Claude.
            Last updated -
            969
            17
            JavaScript
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            An MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.
            Last updated -
            2
            7
            Python
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/b0ttle-neck/mcp-steampipe'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server