Astro MCP Server
Enables access to Astro's App Store Optimization (ASO) database for analyzing app rankings, keyword trends, historical performance data, and app ratings. Provides comprehensive tools for tracking and comparing app store performance metrics through natural language queries.
README
Astro MCP Server
An MCP (Model Context Protocol) server that provides access to Astro ASO (App Store Optimization) data for LLMs.

Requirements
- Astro
- A tool with MCP support (Claude Desktop, Claude Code, ...)
Features
This MCP server provides the following tools for querying Astro's ASO database:
Available Tools
-
search_rankings - Search current keyword rankings for apps
- Find how apps rank for specific keywords
- Filter by app store (us, uk, etc.)
- Filter by app name or app ID
-
get_historical_rankings - Get historical ranking data
- Track ranking changes over time
- Configurable time period (default: 30 days)
- Filter by app and store
-
list_apps - List all tracked applications
- Shows app names, IDs, platforms
- Includes keyword count per app
-
get_app_keywords - Get all keywords for a specific app
- Shows current and previous rankings
- Includes difficulty and popularity scores
- Shows ranking changes
- Accepts app name or app ID
-
get_keyword_trends - Analyze ranking trends
- Statistical analysis (avg, min, max, volatility)
- Trend detection (improving/declining/stable)
- Configurable periods (week/month/year/all)
-
compare_rankings - Compare rankings between dates
- Find ranking changes between two specific dates
- Calculate percentage changes
-
get_app_ratings - Get app rating history
- Track rating changes over time
- Shows user rating counts
- Accepts app name or app ID
Installation
Prerequisites
- Astro app must be installed on your Mac with data in its database
- Node.js 18+ required
# Check your Node version node --version
Usage with Claude
Claude Code (Recommended)
The easiest way to use this MCP server is with Claude Code:
# Install from NPM
claude mcp add -s user -t stdio astro -- npx -y astro-mcp-server
# If npx is using the wrong Node version (common with nvm), use the full path:
claude mcp add -s user -t stdio astro -- $(which npx) -y astro-mcp-server
# Or for local/source installation (after building):
claude mcp add -s user -t stdio astro -- node /path/to/astro-mcp-server/dist/index.js
Claude Desktop
Add the following to your Claude Desktop configuration:
For NPM installation:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"astro-aso": {
"command": "npx",
"args": ["-y", "astro-mcp-server"]
}
}
}
For local/source installation:
First build the project:
cd /path/to/astro-mcp-server
npm run build
Then add to Claude Desktop config:
{
"mcpServers": {
"astro-aso": {
"command": "node",
"args": ["/path/to/astro-mcp-server/dist/index.js"]
}
}
}
Running Standalone
You can also run the server standalone for testing:
# If installed globally
astro-mcp-server
# Or run with npx
npx astro-mcp-server
# Or from source (after building)
npm run build
npm start
# Or for development with auto-reload
npm run dev
Using with MCP Inspector
Test the server using the MCP Inspector:
# For NPM installation
npx @modelcontextprotocol/inspector npx astro-mcp-server
# For local installation (after building)
npx @modelcontextprotocol/inspector node /path/to/dist/index.js
Example Queries
Once connected to Claude (via Claude Code or Claude Desktop), you can ask questions like:
- "Use Astro MCP to show the current rankings for the keyword 'productivity' in the US store"
- "Use Astro MCP to show me the ranking trends for 'task manager' over the last month"
- "Use Astro MCP to list all the apps being tracked"
- "Use Astro MCP to show what keywords the app 'Things 3' ranks for"
- "Use Astro MCP to compare rankings for 'notes' between last week and today"
- "Use Astro MCP to show me the rating history for app ID 1234567890"
- "Use Astro MCP to get keywords for app ID 987654321"
Database Requirements
The server requires read access to Astro's SQLite database, typically located at:
~/Library/Containers/matteospada.it.ASO/Data/Library/Application Support/Astro/Model.sqlite
Make sure Astro has been run at least once and has collected some data before using this server.
Technical Details
- Runtime: Node.js 18+
- Database: SQLite via sql.js (pure JavaScript, read-only access to Astro's database)
- Protocol: MCP (Model Context Protocol) via stdio
- TypeScript: Compiled to JavaScript for distribution
- Date Handling: Converts Core Data timestamps to ISO format
- App Identification: Supports both app names (partial matching) and app IDs (exact matching)
Database Schema
The server reads from these main tables in Astro's database:
ZAPPLICATION- App informationZKEYWORD- Keywords and current rankingsZDATAPOINT- Historical ranking data pointsZRATING- App ratingsZRATINGDATAPOINT- Historical rating data
Development
Project Structure
astro-mcp-server/
├── src/
│ ├── index.ts # Main server implementation
│ └── types.ts # TypeScript type definitions
├── package.json # Dependencies
├── tsconfig.json # TypeScript config
├── mcp.json # MCP configuration
└── README.md # This file
Building from Source
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build - Run in development mode:
npm run dev
Publishing to NPM
- Update version in
package.json - Update author and repository URLs in
package.json - Run:
npm publish(automatically builds via prepublishOnly)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT - See LICENSE file for details
Troubleshooting
Common Issues
-
"Database not found" error
- Ensure Astro is installed and has been run at least once
- Check that the database path exists
-
"Permission denied" error
- The server needs read access to Astro's database
- Check file permissions on the SQLite database
-
"Wrong Node.js version" error
- Ensure you're using Node.js 18 or higher
- For nvm users: Check that
npxis using the correct Node version:npx node --version # Should show v18.x.x or higher which npx # Should be in your nvm directory - If npx is using the wrong version, reinstall npm after switching:
nvm use 18 npm install -g npm
-
No data returned
- Ensure Astro has collected keyword tracking data
- Check that you're using the correct app names or IDs
- Verify the store parameter (default is 'us')
Support
For issues or questions, please open an issue on GitHub.
This project was vibecoded with ❤️ by Tim Broddin - Available for hire at Titans of Industry
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。