Skip to main content
Glama
franccesco

Bloomy MCP

by franccesco

Bloomy MCP

Un servidor de Protocolo de Contexto de Modelo (MCP) para interactuar con la API GraphQL de Bloom Growth.

Descripción general

Bloomy MCP es un servidor que se conecta a la API GraphQL de Bloom Growth y la expone a través del Protocolo de Contexto de Modelo, lo que permite a los asistentes de IA realizar operaciones contra la plataforma Bloom Growth.

Related MCP server: Flow MCP Server

Características

  • Consulta la API GraphQL de Bloom Growth a través de MCP

  • Recuperar detalles de consultas y mutaciones

  • Ejecutar consultas y mutaciones GraphQL mediante herramientas MCP

  • Obtener información de usuario autenticado

  • Introspección automática de esquemas

Instalación

Prerrequisitos

  • Python 3.12 o superior

  • Acceso a la API de Bloom Growth

  • uv (recomendado) o pip para la gestión de paquetes

Gestión de paquetes

Este proyecto recomienda usar uv , un rápido instalador y solucionador de paquetes de Python que reemplaza directamente a pip/pip-tools. Es significativamente más rápido que los gestores de paquetes tradicionales.

Instalación de uv

curl -sSf https://astral.sh/uv/install.sh | sh

Para otros métodos de instalación, consulte la documentación de uv .

Configuración

  1. Clonar este repositorio

  2. Configurar un entorno virtual de Python:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Instalar el paquete en modo de desarrollo:

    Usando pip:

    pip install -e .

    Uso de uv (recomendado):

    uv pip install -e .

    Para dependencias de desarrollo:

    uv pip install -e ".[dev]"

Variables de entorno

Crea un archivo .env con las siguientes variables:

BLOOM_API_URL=<Your Bloom API URL>
BLOOM_API_TOKEN=<Your Bloom API Token>

Uso

Integración del cursor

Para utilizar este servidor MCP con Cursor (IDE impulsado por IA):

  1. Vaya a Cursor > Configuración del cursor > MCP

  2. Haga clic en "Agregar nuevo servidor MCP"

  3. Configure el servidor con los siguientes detalles:

    • Nombre: "Bloom Growth" (o "BG" o cualquier nombre que prefieras)

    • Tipo: Comando

    • Comando: uv run --project /path/to/your/repo/ --env-file /path/to/your/repo/.env bloomy-server

    Importante : reemplace /path/to/your/repo/ con la ruta real a su repositorio bloomy-mcp (por ejemplo, /Users/username/workspace/bloomy-mcp/ ).

Ejecución del servidor

Inicie el servidor Bloomy MCP:

bloomy-server

Inspección del modo de desarrollo

Para fines de desarrollo y depuración, puede utilizar la herramienta de inspección MCP:

npx @modelcontextprotocol/inspector bloomy-server

Esto le permite inspeccionar el comportamiento y las respuestas del servidor MCP durante el desarrollo.

Herramientas recomendadas

Para un flujo de trabajo de desarrollo óptimo:

  • direnv : se utiliza para administrar variables de entorno y cargarlas automáticamente al ingresar al directorio del proyecto

  • uv : Úselo para una gestión de paquetes rápida y confiable

Configuración de direnv:

  1. Instalar direnv (por ejemplo, brew install direnv en macOS)

  2. Cree un archivo .envrc en la raíz de su proyecto:

    export BLOOM_API_URL=your_api_url
    export BLOOM_API_TOKEN=your_api_token
  3. Ejecute direnv allow para autorizar las variables de entorno

Esta combinación de herramientas (direnv + uv) proporciona un entorno eficiente tanto para la gestión de secretos como para la gestión de paquetes.

Herramientas MCP disponibles

Las siguientes herramientas MCP están disponibles para los asistentes de IA:

  • get_query_details : obtenga información detallada sobre consultas GraphQL específicas

  • get_mutation_details : obtenga información detallada sobre mutaciones específicas de GraphQL

  • execute_query - Ejecutar una consulta o mutación GraphQL con variables

  • get_authenticated_user_id - Obtener el ID del usuario actualmente autenticado

Recursos MCP disponibles

  • bloom://queries - Obtener una lista de todas las consultas disponibles

  • bloom://mutations - Obtenga una lista de todas las mutaciones disponibles

Desarrollo

Estructura del proyecto

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

Dependencias

  • mcp[cli] - Servidor de protocolo de contexto de modelo

  • gql - Biblioteca cliente GraphQL

  • httpx - Cliente HTTP

  • pyyaml - Procesamiento de YAML

Available Tools

4 tools
execute_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
ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
variablesNo

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses that the tool 'parses and executes' operations, handles errors internally by returning error messages as strings, and returns results as a dictionary. However, it lacks details on permissions, rate limits, side effects (e.g., mutations vs. queries), or performance characteristics, which are important for a tool executing arbitrary GraphQL.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated first, followed by parameter and return details in a structured format (Args, Returns, Raises). Every sentence adds value, but the 'Raises' section could be more concise, as it somewhat repeats error handling mentioned earlier.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (executing arbitrary GraphQL with potential mutations), no annotations, no output schema, and 2 parameters with 0% schema coverage, the description is moderately complete. It covers basic operation and error handling but lacks details on security implications, mutation effects, or response structure, which are crucial for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% description coverage. It explains that 'query' is a 'Raw GraphQL query or mutation string' and 'variables' is an 'Optional dictionary of variables to use in the operation,' clarifying their roles and formats. This compensates well for the schema's lack of descriptions, though it doesn't provide examples or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Execute a GraphQL query or mutation with variables.' It specifies the verb ('execute') and resource ('GraphQL query or mutation'), and distinguishes it from siblings like get_query_details (which likely inspects rather than executes). However, it doesn't explicitly differentiate from get_mutation_details, which might be a sibling for mutation-specific details.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by mentioning 'GraphQL query or mutation' and providing parameter details, but it doesn't explicitly state when to use this tool versus alternatives like get_query_details or get_mutation_details. No guidance on prerequisites, error handling scenarios, or specific contexts for use is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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
ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and does well by disclosing behavioral traits: it explains the operation uses a 'special mutation', describes three possible return outcomes (ID string, None, or error message), and mentions exception handling. It doesn't cover rate limits or auth specifics beyond the token reference.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (purpose, method, returns, raises) and avoids redundancy. It could be slightly more concise by merging some details, but every sentence adds meaningful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema), the description is quite complete: it explains what the tool does, how it works, possible outcomes, and error handling. For a no-parameter identity tool, this covers essential context without over-explaining.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Since there are 0 parameters and schema coverage is 100%, the baseline is 4. The description appropriately doesn't discuss parameters, focusing instead on the tool's behavior and output, which adds value beyond the empty schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get the ID') and target resource ('currently authenticated user'), distinguishing it from sibling tools like execute_query or get_mutation_details. It provides a precise verb+resource combination without being tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by mentioning 'currently authenticated user' and 'API token', suggesting it's for identity verification. However, it lacks explicit guidance on when to use this tool versus alternatives or any prerequisites beyond authentication.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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
ParametersJSON Schema
NameRequiredDescriptionDefault
mutation_namesYes

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that the tool retrieves information (implying read-only behavior) and specifies the return format (YAML-formatted string), which adds useful context beyond basic functionality. However, it does not mention potential limitations like rate limits, authentication requirements, or error handling, leaving gaps in behavioral disclosure for a tool with no annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the first sentence stating the core purpose. Additional sentences efficiently elaborate on what is retrieved and provide parameter and return details in a structured format (Args/Returns sections). Every sentence adds value without redundancy, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (1 parameter, no output schema, no annotations), the description is largely complete. It covers purpose, usage context, parameter semantics, and return format. However, without annotations or an output schema, it could benefit from more behavioral details (e.g., error cases, authentication needs) to be fully comprehensive, though what is provided is sufficient for basic understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate fully. It explicitly defines the single parameter 'mutation_names' as a 'comma-separated list of mutation names to get details for', adding crucial semantic meaning not present in the schema (which only provides a title and type). This fully compensates for the lack of schema descriptions, making the parameter purpose and format clear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('Get detailed information', 'Retrieves') and resources ('GraphQL mutations'), distinguishing it from sibling tools like execute_query (which executes queries) and get_query_details (which focuses on queries rather than mutations). It explicitly mentions what information is retrieved: argument requirements, return type information, descriptions, and example usage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool: to get detailed information about specific GraphQL mutations. It implicitly distinguishes it from get_query_details (for queries) and execute_query (for execution), but does not explicitly state when not to use it or mention alternatives for similar needs. The guidance is sufficient but lacks explicit exclusions or named alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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
ParametersJSON Schema
NameRequiredDescriptionDefault
query_namesYes

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It describes what the tool retrieves (argument requirements, return types, descriptions, examples) and the return format (YAML-formatted string), which is helpful behavioral context. However, it doesn't mention potential limitations like rate limits, authentication requirements, error conditions, or whether it's read-only (though 'get' implies safe read).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with the core purpose, followed by specific details, then clearly labeled 'Args' and 'Returns' sections. Every sentence adds value: the first states the purpose, the second elaborates on what's retrieved, and the parameter/return sections provide essential usage information with zero waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 1-parameter tool with no annotations and no output schema, the description is reasonably complete: it explains the purpose, parameter semantics, and return format. However, it lacks details about behavioral aspects like error handling, authentication needs, or rate limits, which would be helpful given the absence of annotations. The return format description is adequate but could benefit from more specificity about the YAML structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds crucial semantic context: 'query_names' is a 'comma-separated list of query names to get details for', which explains the parameter's purpose and format beyond the schema's basic string type. This significantly enhances understanding, though it doesn't specify format details like case sensitivity or valid query name patterns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get detailed information about specific GraphQL queries' with specific details about what information is retrieved (argument requirements, return type information, descriptions, example usage). It distinguishes from sibling 'execute_query' (which executes queries) and 'get_mutation_details' (which focuses on mutations), though it doesn't explicitly contrast with 'get_authenticated_user_id'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context (when you need detailed information about GraphQL queries rather than executing them), but doesn't explicitly state when to use this tool versus alternatives like 'get_mutation_details' for mutations or 'execute_query' for execution. No explicit exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv1.0.0
    • First observedexecute_query
    • First observedget_authenticated_user_id
    • First observedget_mutation_details
    • First observedget_query_details

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.
    676 npm
    3
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    1
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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
    -