atlassian-marketplace-mcp

atlassian-marketplace-mcp

Exposes Atlassian Marketplace vendor APIs as 95 MCP tools, 3 resources, and 4 prompts, enabling LLMs to manage licenses, promotions, reviews, and reporting metrics without writing API calls.

Category
访问服务器

README

atlassian-marketplace-mcp

A Model Context Protocol server that exposes the Atlassian Marketplace vendor APIs (reporting + v1 promotions) as 95 tools, 3 resources, and 4 prompts. Lets an LLM look up licenses, query transactions, manage promotions, read reviews, pull churn/conversion/renewal metrics, inspect app listings, and more — without you writing curl one-liners. Every tool is annotated per the MCP 2024-11 spec (readOnlyHint / destructiveHint) so MCP-aware UIs can render safety warnings automatically.

Targets Marketplace vendors (people who sell apps on marketplace.atlassian.com). Not for end users of Marketplace apps.

What is MCP? Model Context Protocol is an open standard for connecting AI assistants (Claude, etc.) to external data sources and tools. This server runs as a child process of your MCP client (Claude Code, Claude Desktop, etc.) and speaks MCP over stdio.

What's covered

Area Tools What it's for
Apps 2 Discover your apps & their UUIDs
Promotions 10 Full CRUD on promos and single-use codes
Licenses 5 List, search by SEN, CSV exports (sync + async)
Transactions 7 Sales history, aggregates, exports
Reporting metrics 20 Churn, conversion, renewal, evaluations, feedback, customer insights, benchmarks, marketing attribution
Reviews 4 Read reviews, respond, delete responses
Search keywords 8 What customers search for to find your apps
App listing & versions 13 Listing metadata, version management, tokens
Privacy, security, migrations 7 Compliance metadata + DC→Cloud migration info
Admin (developer space) 9 Team members, catalog account
Misc 10 Parent software, partner metrics, product catalog, artifacts, free-starter tier

Full per-tool catalog: docs/TOOLS.md. Design notes: docs/ARCHITECTURE.md.

Prerequisites

  • Node.js ≥ 20 (uses native fetch and ES modules)
  • An Atlassian account with vendor access to your developer space
  • An Atlassian API token — create one at id.atlassian.comSecurity → API tokens

Install

git clone <this repo>
cd Atlassian_mcp
npm install
npm run build

Configure

Copy the example env file and fill it in:

cp .env.example .env        # macOS / Linux / PowerShell
# Windows cmd.exe:  copy .env.example .env

The four required variables:

Var Where to get it
ATLASSIAN_EMAIL Your Atlassian login email
ATLASSIAN_API_TOKEN Created at id.atlassian.com → Security → API tokens
MARKETPLACE_DEVELOPER_ID UUID of your developer space — see below
MARKETPLACE_PARTNER_ID Numeric partner ID for the v1 promotions API

Finding your developerId and partnerId

Both are visible in the Atlassian Marketplace partner console URL when you're logged in, or you can resolve developerId from vendorId via the API:

# Replace EMAIL, TOKEN, VENDOR_ID with yours
curl -u "EMAIL:TOKEN" \
  "https://api.atlassian.com/marketplace/rest/3/developer-space/vendor/VENDOR_ID"

The numeric partnerId shows up in the Marketplace partner console URL (e.g. marketplace.atlassian.com/manage/vendors/<partnerId>). Often it's the same number as your vendorId, but not always — verify.

Optional: known product IDs

Add PRODUCT_ID_<UPPER_SNAKE>=<uuid> lines to .env for each of your apps. They're then accessible via the apps_known tool as a friendly-name → UUID map, so the LLM can say "My App Name" without having to call apps_list every time.

Discover the right UUIDs first via:

node dist/server.js  # in another shell, send tools/call apps_list
# Or use the apps_list MCP tool from a connected client.

npm scripts

Script What it does
npm run build Compile TypeScript → dist/
npm run dev tsc --watch — recompile on save
npm run typecheck Strict typecheck without emitting output
npm start Run the compiled server (node dist/server.js)

Run

npm start
# or directly:
node dist/server.js

The server speaks MCP over stdio. It will wait for an MCP client to connect. To smoke-test by hand:

# Send a tools/list request via stdin to see all 95 tools (macOS / Linux)
printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | node dist/server.js

On Windows (PowerShell) the same smoke test is:

@'
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"ps","version":"0"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
'@ | node dist/server.js

Wire into Claude Code

Add this to your ~/.claude.json under mcpServers (or a project-local .mcp.json). On Windows the file lives at %USERPROFILE%\.claude.json; use a Windows-style absolute path in args (forward slashes are fine in JSON):

{
  "mcpServers": {
    "atlassian-marketplace": {
      "command": "node",
      "args": ["/absolute/path/to/Atlassian_mcp/dist/server.js"]
    }
  }
}
// Windows example args:
"args": ["C:/Users/you/Atlassian_mcp/dist/server.js"]

The server finds its .env in the repo root even when the MCP client launches it from a different working directory, so no env block is needed in the client config (though you can use one to override).

Restart Claude Code. The 95 tools are then available as mcp__atlassian-marketplace__* in your next session.

Example prompts

Once wired in, try:

  • "Show me the last 10 transactions in Q1 2026 for <my app>."
  • "What's our cloud churn rate this month?"
  • "List all active promotions expiring this quarter."
  • "Look up license SEN-LXXXXXXXX and tell me when it expires."
  • "Pull customer insights by region for <my app>."
  • "Create a 25% promo code for <my app>, valid until 2026-12-31, single-use, Cloud annual."

Troubleshooting

Symptom Likely cause Fix
HTTP 401 ... Bad email or API token Re-issue token at id.atlassian.com
HTTP 404 ... on reporting endpoints Wrong MARKETPLACE_DEVELOPER_ID Resolve via /developer-space/vendor/{vendorId}
HTTP 404 on promotions endpoints Wrong MARKETPLACE_PARTNER_ID Check the URL in the Marketplace partner console
promotions_list times out / hangs Atlassian-side: the deprecated non-paged variant is unresponsive Use promotions_list_paged instead
Empty result when filtering by productId You passed the appKey instead of the UUID Get the UUID via apps_list or apps_known
An expected app is missing from apps_list The app may live under a different developer-space One MCP instance per developer-space; run a second instance with different env if needed
Multipart upload (artifact / image) Not supported Use Marketplace Partner UI for these uploads

Project structure

src/
├─ server.ts                # MCP stdio entrypoint, registers all 25 tool modules
├─ config.ts                # env loader, single API base, PRODUCT_ID_* map
├─ http-client.ts           # Basic-auth fetch wrapper, 429 retry
└─ tools/
   ├─ _shared.ts            # jsonResult, asQuery, REPORTING_BASE/PROMO_BASE, filter schemas
   ├─ apps.ts               # apps_list, apps_known
   ├─ promotions.ts         # 10 promo tools (v1)
   ├─ licenses.ts           # 5 license tools (reporting)
   ├─ transactions.ts       # 7 transaction tools (reporting)
   ├─ reporting-meta.ts     # reporting_links
   ├─ evaluations.ts        # evaluations_by_metric
   ├─ feedback.ts           # 2 feedback tools
   ├─ customer-insights.ts  # 4 customer insights tools
   ├─ sales-metrics.ts      # 6 sales-metric tools
   ├─ benchmarks.ts         # 2 benchmark tools
   ├─ marketing-attribution.ts # 3 async-export tools
   ├─ app-requests.ts       # app_requests_and_approvals
   ├─ reviews.ts            # 4 review tools
   ├─ search-keywords.ts    # 8 keyword tools
   ├─ free-starter.ts       # free_starter_tier_export
   ├─ app-listing.ts        # 2 product listing tools
   ├─ app-software.ts       # 7 app-software tools
   ├─ app-version-listing.ts# 4 version-listing tools
   ├─ privacy-security.ts   # 4 privacy/security tools
   ├─ migrations.ts         # 3 cloud-migration compat tools
   ├─ parent-software.ts    # 5 parent-software tools
   ├─ developer-space.ts    # 9 dev-space admin tools
   ├─ partner-metrics.ts    # partner_metrics_fetch
   ├─ product-catalog.ts    # product_catalog_latest
   └─ artifacts.ts          # artifact_fetch_from_url, artifact_get

Further reading

License

MIT © 2026 Rustem Shiriiazdanov. Use it, fork it, ship it.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选