TI

tinyfish-io/agentql-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

181 stars 45 forks 质量 90 趋势 37MIT

tinyfish-io/agentql-mcp 是从 https://github.com/tinyfish-io/agentql-mcp. 导入的 MCP 服务器候选

概览

tinyfish-io/agentql-mcp 是从 https://github.com/tinyfish-io/agentql-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

这是一个集成 AgentQL 数据提取能力的模型上下文协议(MCP)服务器。

特色

工具

  • extract-web-data - 从给定的“url”中提取结构化数据,使用“提示符”作为实际数据及其字段的描述。

安装

要使用 AgentQL MCP 服务器从网页提取数据,你需要通过 npm 安装,从我们的开发门户获取 API 密钥,并在你喜欢的支持 MCP 的应用中配置。

安装软件包

配置克劳德

  • 通过⌘+,打开Claude桌面设置(不要与Claude账户设置混淆)
  • 前往开发者侧边栏部分
  • 点击编辑配置并打开claude_desktop_config.json文件
  • 在配置文件中的 mcpServers 字典中添加 agentql 服务器
  • 重启应用

点击这里了解更多关于Claude中MCP配置的信息。

配置 VS 代码

点击以下安装按钮之一即可一键安装:

手动安装

点击本节顶部的安装按钮,获取最快的安装方法。手动安装时,请遵循以下步骤:

在VS Code中将以下JSON块添加到用户设置(JSON)文件中。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

AgentQL MCP Server

This is a Model Context Protocol (MCP) server that integrates AgentQL’s data extraction capabilities.

Features

Tools

  • extract-web-data - extract structured data from a given ‘url’, using ‘prompt’ as a description of actual data and its fields to extract.

Installation

To use AgentQL MCP Server to extract data from web pages, you need to install it via npm, get an API key from our Dev Portal, and configure it in your favorite app that supports MCP.

Install the package

npm install -g agentql-mcp

Configure Claude

  • Open Claude Desktop Settings via ⌘+, (don’t confuse with Claude Account Settings)
  • Go to Developer sidebar section
  • Click Edit Config and open claude_desktop_config.json file
  • Add agentql server inside mcpServers dictionary in the config file
  • Restart the app
{
  "mcpServers": {
    "agentql": {
      "command": "npx",
      "args": ["-y", "agentql-mcp"],
      "env": {
        "AGENTQL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Read more about MCP configuration in Claude here.

Configure VS Code

For one-click installation, click one of the install buttons below:

Manual Installation

Click the install buttons at the top of this section for the quickest installation method. For manual installation, follow these steps:

Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "apiKey",
        "description": "AgentQL API Key",
        "password": true
      }
    ],
    "servers": {
      "agentql": {
        "command": "npx",
在 GitHub 查看完整 README

安装

npx -y agentql-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "agentql": { "command": "npx", "args": ["-y", "agentql-mcp"], "env": { "AGENTQL_API_KEY": "YOUR_API_KEY" } } } }