Avito Mcp

io.github.elchin92由 GitHub 账号 elchin92 发布v2.1.1更新于 Oct 24, 2026

MCP server for Avito: chats, listings, orders and analytics, with previews and confirmations.

概览

AI 生成的概览

把 AI 客户端连接到 Avito 卖家账号,用于读取聊天与统计、起草回复,并管理商品、订单和推广。

可以做什么
  • 读取买家聊天、消息与 webhook 事件,并起草回复
  • 查看商品信息、价格、浏览量、联系方式与账户余额
  • 查看订单、配送状态、物流跟踪、面单与库存
  • 准备推广、竞价与预测,并上传自动加载数据源
  • 预览破坏性请求,并对涉及资金或买家可见的操作进行确认
  • 以资源形式提供工具清单、当前配置、速率限制与待确认操作
适用场景
适合希望让 AI 客户端处理未读买家消息、生成商品与花费的每日报告,或在真正发送前预览价格与推广变更的 Avito 卖家。
运行要求
通过 npx 在本地运行,需要 Node.js 22.12 或更高版本,也可从源码安装。需要支持 MCP 的 AI 客户端,以及具备 API 权限的 Avito 账号,并提供 Client_id、Client_secret 和数字形式的 Profile_id。若改用 HTTP 托管,还需公网 HTTPS 地址和 OAuth 所有者密码。
安装前请注意
业务调用会作用于真实 Avito 账号,可能产生花费或向买家发送消息;默认模式为 full_access,建议先使用 read_only。两次调用确认流程并不等于人工批准。凭据直接发送给 Avito,但工具结果对 AI 客户端可见,并可能按其设置传给模型提供商。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Avito Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

avito-mcp

[npm] [tests] [node] [MIT]

Connect your AI client to your Avito account: read chats and statistics, prepare replies, and manage listings and orders.

Ask your AI client in plain language; it uses this MCP server to call the official Avito APIs. 148 tools across 18 APIs cover buyer chats, listings, statistics, promotion and orders. Run it on your computer or your own server.

You bring an AI client and an Avito account with API access. The client provides the model; this project provides the connection and tools. Automatic replies and scheduled reports need an agent or scheduler configured separately.

Русская версия → · Documentation · Client setup · Workflows · Troubleshooting

New in v2.1.1: step-by-step setup, complete English and Russian workflow and troubleshooting guides, and explicit demo versus live-account instructions. Release notes.

Your next stepGuide
See it work without an Avito accountRun the demo
Connect your own accountQuick start
Set up a client you already useClient configurations
Deploy or contributeOperations · Contributing

Try without Avito credentials

bash
npx -y avito-mcp@2 --demo

The demo uses fictional data: 53 listings and 2 unread chats. It runs locally, needs no Avito keys and sends no requests to Avito. It walks through a report, a price preview, confirmation and a repeated request that changes the price only once. The first npx run downloads the npm package; from source, use npm run demo.

To use your own Avito account, follow the quick start and omit --demo. Normal server calls use your configured account; demo data never replaces it.

[Local demo output: 53 fictional listings, 2 unread chats, and one confirmed price change despite a retry]

What you can do

TaskStart hereResult
Check how your listings are doingMorning report, analytics profileBalance, listing activity and spending, with dates and source IDs
Work through buyer messagesUnread-chat triage, messenger profilePrioritised chats and draft replies; sending is a separate confirmed action
Change a listing pricePreview and confirm, seller profileRequest preview, pending action, then a result to check

Profiles use existing environment variables to expose a focused tool set. The recipes explain what to ask, which tools are involved, and how to check the result.

Quick start

1. Prepare your account

You need Node.js 22.12+, an MCP-capable AI client, and Avito API credentials for your account. Obtain Client_id, Client_secret, and numeric Profile_id through Avito's API account page. Available methods depend on your account's API access; installing this server does not grant additional Avito permissions.

2. Add the server to your client

For Claude Desktop, merge this into its MCP config using Settings → Developer → Edit Config. For Cursor, use your personal ~/.cursor/mcp.json. Replace the three placeholders locally and keep the filled config out of Git.

json
{  "mcpServers": {    "avito": {      "command": "npx",      "args": ["-y", "avito-mcp@2"],      "env": {        "Client_id": "YOUR_CLIENT_ID",        "Client_secret": "YOUR_CLIENT_SECRET",        "Profile_id": "YOUR_PROFILE_ID",        "AVITO_MCP_MODE": "read_only"      }    }  }}

3. Check a real read

Restart the client and ask: “Use Avito to show my account balance and the first page of active listings. Do not change anything.” A successful answer should show your real balance and listing IDs, or an empty list if the account has no listings. The example starts in read_only; without this setting the server's default remains full_access.

VS Code, Zed, Codex and ChatGPT use their own setup formats. Copy the client-specific config, then try a workflow. The examples pin major version 2; pin an exact published version for controlled deployments.

Connect your AI client

ClientReady-to-copy config
Claude DesktopJSON + setup
CursorJSON + setup
VS Code / Copilotservers JSON
Zedcontext_servers JSON
Codex CLI / IDE extensionTOML
ChatGPT desktopSettings → MCP servers or shared TOML
ChatGPT webRemote plugin setup and limits

These are documented configurations, not a claim that every client/version has been tested against a live Avito account. Report compatibility results with the client version and operating system.

API coverage

DomainExamples
MessengerChats, messages, images, subscriptions and webhook events
Listings and statisticsListing details, prices, views, contacts and spending
Orders and stockDelivery statuses, tracking, labels, marking codes and stock
PromotionVAS, CPA bids, forecasts and promotion orders
AutoloadFeed uploads, reports and ID mapping
Account and other APIsBalance, reviews, staff, tariffs and calls
Logistics partners3PL delivery endpoints; most sellers do not need these

The bundled API snapshot covers 138 Swagger operations plus local and meta tools. The full manifest has 148 tools; default registration exposes 144, because token-returning tools and local image uploads require separate opt-ins. read_only exposes 80 before allowlist filtering. Inspect avito://manifest or build dist/manifest.json for exact names, schemas and risks.

Resources include the tool manifest, active configuration, rate limits, pending confirmations and webhook events. Five built-in prompts cover a daily overview, unread chats, promotion preparation, tool explanations and a safety report. Resource and prompt reference.

Safety and retries

  • read_only, guarded, and full_access, plus AVITO_MCP_ALLOW_TOOLS / AVITO_MCP_DENY_TOOLS, control which tools are available.
  • dryRun: true previews a destructive request without sending it. It does not reserve an action or validate the live account's permission to execute it.
  • Money and customer-visible actions use a two-call confirmation flow by default. The agent can make both calls: this is not proof of human approval. Use client-side approvals or the separate approval controls described in safety configuration.
  • An idempotencyKey deduplicates the same tool and arguments within the configured retention period. Reuse the same key for the same intended operation. If the outcome is uncertain, reconcile with Avito before retrying or choosing a new key.
  • Credentials go directly to Avito; there is no project-operated proxy or telemetry. Tool results are visible to your AI client and may be sent to its model provider under that client's settings.

Business calls use the real Avito account. Start with reads and previews. Ready-to-use safety configurations describe stronger approval controls, upload boundaries and recovery.

Remote MCP over HTTP (OAuth 2.1)

For a hosted agent or several clients, use Streamable HTTP on your own HTTPS domain. Set AVITO_MCP_TRANSPORT=http, AVITO_MCP_HTTP_PUBLIC_URL=https://mcp.example.com, and a strong AVITO_MCP_OAUTH_OWNER_PASSWORD, together with the Avito credentials.

Deployment, OAuth, Caddy and nginx configuration. bearer and none modes do not claim conformance with the MCP authorization specification; use OAuth for clients that discover authorization automatically.

Avito webhook receiver

The optional receiver buffers incoming Avito events and exposes them through a tool and a subscribable resource. An external agent must consume those events and decide whether to respond. Receiver setup.

Protocol and compatibility

Protocol revisions

AVITO_MCP_PROTOCOL_ERA selects legacy (default, MCP 2025-11-25), dual (both revisions), or modern (MCP 2026-07-28). A default stdio installation keeps serving the legacy revision; enabling the newer revision is explicit.

AVITO_MCP_HTTP_MAX_SESSIONS and AVITO_MCP_HTTP_SESSION_IDLE_SEC apply to legacy 2025-11-25 only. Modern HTTP uses AVITO_MCP_HTTP_MAX_INFLIGHT and AVITO_MCP_HTTP_MAX_STREAMS instead. Protocol details and limits.

Public tool names, documented valid arguments, environment variables, resource URIs and prompt names follow SemVer. See versioning details, migration from 1.3.x, and CHANGELOG.

Security

Token-returning tools and image uploads stay hidden until explicitly enabled. Tokens and runtime state are stored locally with restricted file permissions. Safety configuration, security policy and private reporting, and operational diagnostics describe the boundaries.

Install from source

bash
git clone https://github.com/elchin92/avito-mcp.gitcd avito-mcpnpm cicp .env.example .env# Fill in your credentials locally.npm run build:release

Configure your client to run node /absolute/path/to/dist/server.js. Pass credentials through its env, or set AVITO_ENV_FILE to the absolute path of your filled .env file. Dockerfile and systemd installer are included; read operations and .env.example before deploying.

Contributors: CONTRIBUTING explains the shared tool factory and validation. Run npm run verify:release before a code PR. CI checks types, tests, coverage, package installation and deployment behavior; live Avito smoke tests are a separate, explicit check.

Not covered here

The Auction, Autostrategy, Autoteka, Jobs, Realty reports and Short-term rent API specifications are not bundled. This project also does not provide a model, a hosted agent service, or a scheduler. See the roadmap for concrete contribution opportunities.

Questions and bug reports: GitHub Issues · Support. Useful contributions include a reproducible bug, a tested client configuration, or a clearer workflow. If the project helps you, a GitHub star helps other Avito users find it.

MIT. Independent project; not affiliated with Avito. See NOTICE for the trademark and API-terms notice.

来源:README.md,提交 047b21e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分