Skip to main content
Glama
anhmtk

AgentShare — Solana DeFi Intelligence MCP

by anhmtk

AgentShare

Production Ready MCP Server Python REST API Docs

为 AI Agent 提供结构化的市场价格和报价 — 支持 REST API 和 MCP (流式 HTTP)。

网站与文档

https://agentshare.dev

MCP 端点

https://agentshare.dev/mcp/

发现地址

/agent.json · /mcp.json · llm.txt / llms.txt

本仓库包含用于 Claude Desktop、Cursor 及其他 MCP 客户端的 stdio MCP 服务器,以及极简的 REST 示例。实时 API 和完整集成指南请见上述网站。


面向 AI Agent(机器可读)


Related MCP server: Godalo

获取 API 密钥

要使用此 MCP 服务器或 REST API,您需要一个 API 密钥。请访问 https://agentshare.dev/pricing 获取您的免费层级密钥(撰写本文时,公共免费计划为每月 100 次请求 — 请务必在网站上确认)。


面向人类:快速安装 (pip)

git clone https://github.com/anhmtk/agentshare-mcp.git
cd agentshare-mcp
pip install -r integrations/mcp_server/requirements.txt
export API_KEY=your_api_key   # Windows: $env:API_KEY="..."
# optional: export BASE_URL=https://agentshare.dev
python integrations/mcp_server/server.py

获取密钥:https://agentshare.dev/pricing


快速安装 — Claude Desktop (claude_desktop_config.json)

使用本地 stdio 服务器(Python)。将路径替换为您仓库克隆中 server.py 的绝对路径。

{
  "mcpServers": {
    "agentshare": {
      "command": "python",
      "args": ["/ABSOLUTE/PATH/TO/agentshare-mcp/integrations/mcp_server/server.py"],
      "env": {
        "API_KEY": "your-api-key-here",
        "BASE_URL": "https://agentshare.dev"
      }
    }
  }
}
  • 获取密钥:https://agentshare.dev/pricing

  • 在 Windows 上,args 中建议使用正斜杠,例如 D:/code/agentshare-mcp/integrations/mcp_server/server.py。

远程 MCP (流式 HTTP): 支持 URL + API 密钥标头的客户端可以使用 https://agentshare.dev/mcp/ 并配合 X-API-Key 或 Authorization: Bearer。使用 mcp-config.json 进行 npx mcp-remote。详情:MCP 快速入门(MCP 章节)。

进阶 — 通过 mcp-remote (Node / npx) 使用 HTTP: 如果您使用 mcp-remote 将 HTTPS 桥接到 stdio,请使用 --header 传递您的密钥(参见 Cursor MCP 设置 中的故障排除);本仓库不发布 npx agentshare-mcp 包。


在本地克隆并运行 stdio MCP

从仓库根目录执行:

pip install -r integrations/mcp_server/requirements.txt
export API_KEY=your_api_key
# optional: export BASE_URL=http://localhost:8000
python integrations/mcp_server/server.py

等同于 python integrations/mcp_server/run.py。有关工具和环境,请参阅 integrations/mcp_server/README.md。


代码示例 (REST)

examples/ 文件夹中包含调用公共 JSON API (GET /api/v1/search, …) 的小型脚本。在连接 MCP 之前,这些脚本对于测试密钥非常有用。


MCP 目录与列表

生产环境发现(无需身份验证)— 提交到目录时请使用这些 URL:

第三方索引(搜索 AgentShare 或您的列表 URL):

  • Smithery — MCP 服务器注册表

  • Glama — MCP / AI 网关目录


许可证

MIT — 参见 LICENSE。

GitHub — CI 与仓库流量

  • CI: 在推送/PR 时验证 MCP 包导入 — Actions → CI。

  • 流量: GitHub 仅显示汇总的浏览/克隆数据(维护者可见 Insights → Traffic)。每周的 GitHub 流量快照会将 API 结果写入运行的 Summary(与 Insights 理念相同)。


范围(诚实且前瞻)

AgentShare 从已连接的市场和联盟来源聚合产品和报价数据。覆盖范围和新鲜度因来源而异;API 返回新鲜度元数据(例如 crawled_at、data_age_seconds、freshness_status),以便 Agent 可以判断其可靠性。

方向: 随着集成的成熟,向全球电子商务和主要国际市场扩展。关于当前重点,请参阅 GET /coverage:https://agentshare.dev/coverage


法律

条款与隐私:https://agentshare.dev/terms · https://agentshare.dev/privacy

Available Tools

4 tools
best_offerBest single offerA
Read-onlyIdempotent

Return the single best current offer for a product intent: typically lowest price among in-stock listings the API trusts. Use when the user asks where to buy something cheapest, 'best deal', or one clear recommendation. For side‑by‑side comparison of many listings, prefer price_search.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesWhat to buy, e.g. product name + model or distinguishing keywords.

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds valuable behavioral context beyond annotations: it explains the selection criteria ('lowest price among in-stock listings the API trusts') and the single-result nature of the output. While annotations already indicate read-only, idempotent, and open-world characteristics, the description provides operational details that help the agent understand what 'best' means in this context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with two sentences that each serve distinct purposes: the first explains what the tool does, the second provides usage guidelines. Every word contributes to understanding, with no wasted text or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, idempotent query tool with good annotations and full parameter documentation, the description provides excellent context about when and why to use it. The main gap is the lack of output schema, but the description adequately compensates by explaining the single-result nature. It could be slightly more complete by mentioning potential limitations or error cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the input schema already fully documents the single 'query' parameter. The description doesn't add any parameter-specific information beyond what's in the schema, so it meets the baseline expectation without providing additional semantic context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('return', 'lowest price') and resources ('single best current offer', 'product intent', 'in-stock listings'). It explicitly distinguishes from sibling tools by contrasting with 'price_search' for side-by-side comparisons.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('when the user asks where to buy something cheapest, "best deal", or one clear recommendation') and when to prefer alternatives ('For side‑by‑side comparison of many listings, prefer price_search'). This covers both inclusion and exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

best_offer_under_budgetBest offer under budgetA
Read-onlyIdempotent

Find the best offer for a product query with a maximum price ceiling. Use when the user gives a budget, 'under $X', 'below …', or 'no more than …'. Pass max_price in the same numeric unit the deployed API expects for that field (see API docs). Do not use for open-ended comparison without a cap—use price_search or best_offer.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesProduct or deal to find within the budget.
max_priceYesStrict upper bound on price, using the same numeric scale as the API's pricing fields for your environment (see /api/v1/meta or site docs).

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate this is a read-only, idempotent, and open-world operation. The description adds valuable context by specifying that it finds the 'best offer' (implying some ranking or optimization) and includes a note about API numeric units ('Pass max_price in the same numeric unit the deployed API expects'), which helps the agent understand implementation details beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, followed by usage guidelines and parameter notes. Every sentence adds value: the first defines the tool, the second specifies when to use it, the third clarifies parameter handling, and the fourth distinguishes from siblings. There is no wasted text, making it highly efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 required parameters, no output schema), the description is largely complete. It covers purpose, usage, and parameter semantics effectively. However, it does not explicitly describe the return format or what 'best' means (e.g., criteria like lowest price or highest rating), leaving a minor gap in behavioral context that could aid the agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents both parameters. The description adds meaningful context by explaining that 'max_price' is a 'strict upper bound on price' and reiterates the API unit requirement, which reinforces the schema's details without redundancy. This provides additional semantic understanding beyond the schema's technical specifications.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Find the best offer for a product query with a maximum price ceiling.' It specifies the verb ('Find'), resource ('best offer'), and constraint ('with a maximum price ceiling'), and explicitly distinguishes it from siblings by stating when not to use it ('Do not use for open-ended comparison without a cap—use price_search or best_offer').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('Use when the user gives a budget, "under $X", "below …", or "no more than …"') and when not to use it ('Do not use for open-ended comparison without a cap—use price_search or best_offer'), naming specific alternatives. This gives clear context and exclusions for proper tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

service_metaService metadataA
Read-onlyIdempotent

Return API capabilities, rate limits, and integration hints. Safe to call without an API key when the deployment allows it. Use for onboarding, capability checks, or answering 'what can this API do?' before calling paid tools.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, covering safety and idempotency. The description adds valuable context beyond annotations: it discloses that the tool is 'Safe to call without an API key when the deployment allows it,' which is critical for authentication behavior not covered by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, followed by behavioral context and usage guidelines in two concise sentences. Every sentence adds value without waste, making it highly efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (0 parameters, no output schema) and rich annotations, the description is nearly complete. It covers purpose, usage, and key behavioral context (API key safety). A minor gap is the lack of output format details, but with annotations providing safety info, this is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0 parameters and 100% schema description coverage, the baseline is 4. The description appropriately does not discuss parameters, as none exist, and instead focuses on the tool's purpose and usage, which is efficient and correct for this case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('return API capabilities, rate limits, and integration hints') and resources ('Service metadata'), distinguishing it from sibling tools focused on pricing/offers. It explicitly answers 'what can this API do?' which establishes its unique role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: 'Use for onboarding, capability checks, or answering 'what can this API do?' before calling paid tools.' This gives clear when-to-use scenarios and implies an alternative (calling paid tools) without redundancy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 4 tool updatesv1.0.0
    • First observedbest_offer
    • First observedbest_offer_under_budget
    • First observedprice_search
    • First observedservice_meta

TDQS

A4.6/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: best_offer for single cheapest offer, best_offer_under_budget for budget-constrained offers, price_search for multi-offer comparison, and service_meta for API metadata. The descriptions explicitly differentiate when to use each tool, with no functional overlap.

Naming Consistency5/5

All tools follow a consistent snake_case naming pattern with clear verb-noun combinations (best_offer, price_search, service_meta). The naming is predictable and follows the same stylistic convention throughout.

Tool Count5/5

Four tools is perfectly appropriate for a price API server - it covers the core use cases (single offer, budget-constrained offer, multi-offer search, and service metadata) without being overly sparse or bloated. Each tool earns its place in the set.

Completeness4/5

The toolset covers the essential price comparison workflows well, with clear guidance on when to use each tool. The only minor gap is the lack of tools for more advanced operations like price tracking, historical price data, or alerting, but the core functionality is complete for basic price queries.

Maintenance

ActivityActive
ResponsivenessUnresponsive

Related MCP Connectors

  • Your agent needs marketplace data — what a product costs on Amazon and Google Shopping, who the sellers are, what reviewers actually complain about. **What you can ask for** • "What is this ASIN's price history, rating and seller list?" • "Who else sells this product, and at what price?" • "Pull the reviews for this product and group the complaints." • "What comes up on Google Shopping for this query in the UK?" • "Compare these products across both marketplaces." **How to use it** Point any MCP client at https://mcp.aisa.one/seo-merchant/mcp and sign in with OAuth — there is no key to create or paste. 22 tools: Amazon products, ASIN detail and sellers; Google Shopping products, product info, sellers and reviews; live and queued forms, with raw HTML where you need it. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Price the product here, then ask the same agent what the brand's site traffic or ad spend looks like — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/seo/mcp for all of it at once — rankings, keywords, backlinks, site health and AI-answer visibility across DataForSEO, Semrush and Ahrefs.

  • AI-agent product catalog: search, lookup & purchase routing over verified merchant data.

  • Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.

  • Agent Commerce MCP — agent-native A2A storefront. Discovery, Stripe checkout, affiliate program.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Agentic commerce infrastructure for AI agents. MCP-native product discovery, contextual ad matching, and purchase facilitation with European privacy compliance (nDSG/GDPR).
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Affiliate product search for AI agents. Indexes structured merchant feeds — real prices, live stock, affiliate links built in. Works with any MCP client.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Federated commerce search MCP server enabling AI agents to query real product offers, prices, and availability across independent WooCommerce stores without API keys or registration.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to search products across affiliate networks, compare commissions, find arbitrage opportunities, and get auto-injected affiliate links via MCP.
    -