FlowAPI MCP Server
MCP server providing system-level access to FlowAPI endpoints for art, user, and invite operations using sys_key authentication.
README
FlowAPI MCP Server
Model Context Protocol (MCP) server for integration with FlowAPI system operations.
Overview
This MCP server provides system-level access to FlowAPI endpoints through Claude Code integration, enabling automated operations with sys_key authentication only. The server focuses on read operations and system queries that work reliably with system-level authentication.
Features
- System Authentication: Uses X-SYS-KEY for system-level operations
- Read-Only Focus: Optimized for data retrieval and system queries
- Typed API: Full TypeScript type safety
- Error Handling: Comprehensive error handling and logging
- Reliable Operations: Only includes endpoints verified to work with sys_key auth
Supported Operations
Art & NFT Operations
list_arts- Get list of arts with filters and paginationget_art- Get detailed art information by IDget_recommended_arts- Get recommended arts for discoverylist_art_collections- List art collections with optional filtersget_art_collection- Get collection details by ID
User Management
search_users- Search users with filters and paginationget_user- Get user information by various IDs (user_id, webapp_user_id, telegram_user_id, discord_user_id, camunda_user_id)get_user_wallets- Retrieve user wallet information
Invite System
get_invited_wallets- Get invited wallet addresses for blockchain integrationget_invited_wallets_by_token- Get invited wallets for specific token
External Workers & Strategies
list_external_workers- List external worker configurationsget_external_worker- Get external worker detailslist_strategies- List available strategiesget_strategy- Get strategy details
System Information
health_check- Check API health and statusget_available_tools- List all available MCP tools
Installation
npm install
npm run build
Configuration
Copy the example configuration:
cp .env.example .env
Edit .env with your FlowAPI configuration:
# FlowAPI Configuration
FLOW_API_URL=https://your-flowapi-instance.com/api
FLOW_API_SYS_KEY=your-system-key-here
# Environment
NODE_ENV=production
# Logging
LOG_LEVEL=info
# MCP Server Configuration
MCP_SERVER_NAME=flowapi-server
MCP_SERVER_VERSION=1.0.0
Usage
Development
npm run dev
Production
npm run build
npm start
Testing
# Test all available endpoints
node dist/test-final.js
Integration with Claude Code
Add to your Claude Code MCP configuration (~/.claude/mcp_servers.json):
{
"mcpServers": {
"flowapi": {
"command": "node",
"args": ["/path/to/flowapi-mcp-server/dist/index.js"],
"env": {
"FLOW_API_URL": "https://your-flowapi-instance.com/api",
"FLOW_API_SYS_KEY": "your-system-key-here",
"NODE_ENV": "production"
}
}
}
}
Architecture
Authentication Strategy
This server exclusively uses system key authentication (X-SYS-KEY header) for all operations. JWT-dependent endpoints have been removed to ensure reliability and consistency.
Error Handling
- Comprehensive error responses with detailed information
- HTTP status code preservation
- Structured error messages for debugging
Type Safety
- Full TypeScript implementation
- Zod schema validation for all inputs
- Strict API response typing
API Examples
List Arts with Filters
// Get the first 10 arts
await client.getArts(10, 0, '{"active": true}');
Search Users
// Search for premium users
await client.searchUsers({
is_premium: true,
page: 1,
page_size: 10
});
Get User Information
// Get user by different ID types
await client.getUserBy({ user_id: "uuid-here" });
await client.getUserBy({ camunda_user_id: "camunda-id" });
await client.getUserBy({ webapp_user_id: "webapp-uuid" });
Development Notes
Removed Features
The following endpoints were removed due to JWT authentication requirements:
create_art- Requires user context via JWTupdate_art- Requires user ownership validationcreate_art_collection- Requires user authenticationget_next_arts- Requires user personalizationget_arts_history- Requires user context
Adding New Endpoints
- Add the endpoint method to
FlowApiClient - Create the tool definition in appropriate tool file
- Add the handler in the tool's
handlefunction - Update type definitions if needed
- Test with sys_key authentication
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Ensure all tests pass:
npm test - Submit a pull request
License
MIT License - see LICENSE file for details.
Support
For issues and questions, please use the GitHub Issues page.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。