Bloomy MCP
Bloomy MCP
用于与 Bloom Growth 的 GraphQL API 交互的模型上下文协议 (MCP) 服务器。
概述
Bloomy MCP 是一个连接到 Bloom Growth 的 GraphQL API 并通过模型上下文协议公开它的服务器,使 AI 助手能够针对 Bloom Growth 平台执行操作。
Related MCP server: Flow MCP Server
特征
通过 MCP 查询 Bloom Growth GraphQL API
检索查询和突变详细信息
通过 MCP 工具执行 GraphQL 查询和变更
获取已认证用户信息
自动模式自省
安装
先决条件
Python 3.12 或更高版本
访问 Bloom Growth API
uv (推荐)或 pip 用于包管理
包管理
本项目推荐使用uv ,这是一个快速的 Python 软件包安装程序和解析器,可以作为 pip/pip-tools 的直接替代品。它比传统的软件包管理器速度快得多。
安装 uv
curl -sSf https://astral.sh/uv/install.sh | sh其他安装方法请参见uv文档。
设置
克隆此存储库
设置 Python 虚拟环境:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate以开发模式安装包:
使用 pip:
pip install -e .使用 uv(推荐):
uv pip install -e .对于开发依赖项:
uv pip install -e ".[dev]"
环境变量
使用以下变量创建.env文件:
BLOOM_API_URL=<Your Bloom API URL>
BLOOM_API_TOKEN=<Your Bloom API Token>用法
光标集成
要将此 MCP 服务器与 Cursor(AI 驱动的 IDE)一起使用:
前往“光标”>“光标设置”>“MCP”
点击“添加新的 MCP 服务器”
使用以下详细信息配置服务器:
名称:“Bloom Growth”(或“BG”或您喜欢的任何名称)
类型:命令
命令:
uv run --project /path/to/your/repo/ --env-file /path/to/your/repo/.env bloomy-server
重要提示:将
/path/to/your/repo/替换为您的 bloomy-mcp 存储库的实际路径(例如,/Users/username/workspace/bloomy-mcp/)。
运行服务器
启动 Bloomy MCP 服务器:
bloomy-server开发模式检查
为了开发和调试目的,您可以使用 MCP 检查器工具:
npx @modelcontextprotocol/inspector bloomy-server这使您可以在开发过程中检查 MCP 服务器的行为和响应。
推荐工具
为了获得最佳开发工作流程:
direnv :用于管理环境变量,并在进入项目目录时自动加载它们
uv :用于快速可靠的包管理
设置 direnv:
安装 direnv(例如,在 macOS 上
brew install direnv)在项目根目录中创建一个
.envrc文件:export BLOOM_API_URL=your_api_url export BLOOM_API_TOKEN=your_api_token运行
direnv allow授权环境变量
这种工具组合(direnv + uv)为秘密管理和包管理提供了高效的环境。
可用的 MCP 工具
以下 MCP 工具可供 AI 助手使用:
get_query_details- 获取有关特定 GraphQL 查询的详细信息get_mutation_details- 获取有关特定 GraphQL 突变的详细信息execute_query带有变量的 GraphQL 查询或变异get_authenticated_user_id- 获取当前已验证用户的 ID
可用的 MCP 资源
bloom://queries- 获取所有可用查询的列表bloom://mutations- 获取所有可用突变的列表
发展
项目结构
src/
└── bloomy_mcp/
├── __init__.py # Package initialization
├── client.py # GraphQL client implementation
├── formatters.py # Data formatting utilities
├── introspection.py # GraphQL schema introspection
├── operations.py # GraphQL operation utilities
└── server.py # MCP server implementation依赖项
mcp[cli]- 模型上下文协议服务器gql-GraphQL 客户端库httpx——HTTP 客户端pyyaml——YAML 处理
Available Tools
4 toolsexecute_queryA
Execute a GraphQL query or mutation with variables.
Parses and executes the provided GraphQL operation string with optional variables.
Args:
query: Raw GraphQL query or mutation string
variables: Optional dictionary of variables to use in the operation
Returns:
Dictionary containing the operation results or an error message string
Raises:
Exception: Handled internally, returns error message as string
Inputs: query (required), variables.
get_authenticated_user_idA
Get the ID of the currently authenticated user.
Uses a special mutation to retrieve the ID of the user associated with
the current API token.
Returns:
User ID string if successful, None if user not found, or error message string
Raises:
Exception: Handled internally, returns error message as string
Inputs: no named parameters.
get_mutation_detailsA
Get detailed information about specific GraphQL mutations.
Retrieves argument requirements, return type information, descriptions, and
example usage for the specified mutations.
Args:
mutation_names: Comma-separated list of mutation names to get details for
Returns:
A YAML-formatted string containing detailed information about the requested mutations
Inputs: mutation_names (required).
get_query_detailsA
Get detailed information about specific GraphQL queries.
Retrieves argument requirements, return type information, descriptions, and
example usage for the specified queries.
Args:
query_names: Comma-separated list of query names to get details for
Returns:
A YAML-formatted string containing detailed information about the requested queries
Inputs: query_names (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: execute_query performs operations, get_authenticated_user_id handles authentication, and get_mutation_details/get_query_details provide metadata. The two detail tools are differentiated by query vs mutation focus, preventing confusion.
All tools follow a consistent verb_noun naming pattern with snake_case: execute_query, get_authenticated_user_id, get_mutation_details, get_query_details. The pattern is predictable and readable throughout the set.
Four tools is well-scoped for a GraphQL-focused server: one for execution, one for authentication, and two for schema introspection. Each tool earns its place without bloat or thin coverage for the domain.
The surface covers core GraphQL workflows well: execution, authentication, and schema details for both queries and mutations. A minor gap is the lack of a tool for subscription details or general schema exploration beyond specific queries/mutations, but agents can work around this.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
The Grafbase MCP server sits in front of a GraphQL API and exposes an MCP protocol-compliant interface that allows AI agents and LLMs to explore and query GraphQL APIs using natural language. It provides tools to search schemas, introspect types and fields, and execute GraphQL queries while minimizing context bloat by returning only relevant schema subsets, with built-in support for authentication, authorization, and configurable access control.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.3MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.2-