Skip to main content
Glama
gleanwork

Glean Connector MCP Server

by gleanwork

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_startedA

Entry point for building a Glean connector. Returns an opening prompt that orients the AI and asks the user what data source they want to connect. Call this before any other tool.

create_connectorA

Scaffold a new Glean connector project using the standard template. Call this after get_started. Sets the active project directory for this session.

infer_schemaA

Parse a data file (.csv, .json, .ndjson) and return field analysis: detected types, null rates, cardinality, and sample values. Use this to understand the source data before defining mappings.

get_schemaA

Read the current field schema from .glean/schema.json.

update_schemaA

Write field definitions to .glean/schema.json. Call this after infer_schema to save the agreed schema, or to make manual edits. Set merge: true to merge incoming fields with the existing schema (fields with the same name are replaced; new names are appended) instead of replacing the entire field list.

analyze_fieldB

Deep-dive on a single field from the current schema: samples, type details, and Glean mapping suggestions.

get_mappingsA

Return the current source schema alongside the Glean entity model so you can decide which source field maps to which Glean field.

confirm_mappingsA

Save field mapping decisions to .glean/mappings.json. Merges with any existing mappings.

validate_mappingsA

Check current mappings against Glean's entity model. Reports missing required fields and type mismatches.

get_configA

Read the current connector configuration from .glean/config.json.

set_configA

Write connector configuration to .glean/config.json. Merges with existing config. Code-generation keys (consumed by build_connector): name, display_name, datasource_category, url_regex, icon_url, connector_type. Runtime-only keys (used by the connector at execution time, not during code generation): auth_type, endpoint, api_key_header, page_size, rate_limit_rps.

build_connectorA

Generate Python connector files from schema + mappings + config. Use dry_run: true to preview the generated code without writing files.

run_connectorA

Start async execution of the Python connector. Returns an execution_id immediately. Poll status with inspect_execution.

inspect_executionA

Check execution status and retrieve records. Returns status, records fetched, per-record validation results, and recent logs.

manage_recordingB

Manage connector recordings. action: "record" saves fetched data, "replay" runs from a saved file, "list" shows available recordings, "delete" removes one.

list_connectorsA

List all connector classes found in this project with their module paths.

get_data_clientA

Read data_client.py for a module — use before asking AI to implement real API calls.

update_data_clientC

Write a new data_client.py implementation (replaces the mock with real API calls).

check_prerequisitesB

Check that all required tools and credentials are installed and configured.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
connector://workflowStep-by-step guide for authoring a Glean connector with these MCP tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gleanwork/connector-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server