Skip to main content
Glama
vivz-git

GTM MCP Server

by vivz-git

GTM MCP Server

An MCP server that exposes go-to-market capabilities — company and contact enrichment, CRM query, and controlled writes back to a CRM — as tools an AI agent can call directly from Claude Desktop, Claude Code, or any MCP client.

Built on the official MCP Python SDK v2 against spec revision 2026-07-28.

Status: foundation complete, GTM tools not yet implemented. The server runs, connects to a real MCP client, and serves one diagnostic tool. The five GTM tools below are designed and architecturally provided for, but not written yet. The live server_info tool reports exactly which capabilities are implemented, so this claim is checkable rather than something you have to take on faith. See PROJECT_STATUS.md for detail.

Why this exists

GTM teams run enrichment, list building and CRM hygiene through a stack of disconnected tools and a lot of manual copying. An AI agent could do that work end to end — research an account, find the right contact, check what the CRM already knows, write back the result — if it had safe, well-described tools to call.

"Safe" is the hard part. An agent with write access to a CRM is one ambiguous instruction away from corrupting a revenue system. This project treats that as the central design problem rather than an afterthought: the write path has no delete capability at any layer, every write is an audited upsert, and a tool structurally cannot report success for an operation that did not happen.

Related MCP server: AgentsGate

Planned capabilities

Tool

Kind

What it does

Status

search_company

read

Firmographic enrichment from a domain or name

Planned

search_contact

read

People enrichment from a name and company

Planned

crm_query

read

Query CRM records with bounded, typed filters

Planned

save_to_list

write

Add an existing contact to a GTM list

Planned

sync_to_crm

write

Upsert enriched data into the CRM

Planned

server_info

read

Report available capabilities and system health

Implemented

Engineering highlights

Guardrails that are enforced, not promised. Every safety property in ARCHITECTURE.md maps to a mechanism and a test:

  • No delete exists anywhere — not on the repository port, not in the audit operation enum, not in any tool name. A contract test screens the live tool list for destructive naming.

  • WriteResult.success is a computed field derived from the outcome, on a frozen model. No call site can set it to True after a failure. A dry run is explicitly not a success.

  • Guardrail configuration is immutable at runtime and rejects unknown keys, so a typo in an environment variable fails loudly rather than silently disabling a safety check.

  • Every write attempt is audited, including the ones that were rejected or failed.

Tool definitions written for a model. Descriptions state when not to call a tool; parameters carry descriptions and real constraints; errors are split into "the agent can fix this" and "the server is broken" (ToolError vs MCPError) so a failure either teaches the agent something or stays out of its way.

Schemas derived from types. No hand-written JSON Schema anywhere — the SDK derives input and output schemas from Pydantic models and validates returns against them, so the schema cannot drift from the implementation.

Protocol-level tests. MCP tools are tested through a real in-memory client session, so registration, schema derivation, annotations and lifespan injection are all covered — not just the Python function underneath.

Architecture at a glance

MCP client  →  server layer  →  tool layer  →  service layer  →  ports  →  adapters
                                                                            ├─ enrichment APIs
                                                                            └─ PostgreSQL mock CRM

A modular monolith with dependencies pointing inward. Only the tool layer knows about MCP; everything below it is ordinary, testable Python. Swapping an enrichment vendor or the CRM backend means writing one adapter, with no change to any tool.

Full detail in ARCHITECTURE.md; the reasoning behind each choice in DECISIONS.md.

Getting started

Requirements: uv, Docker (for the mock CRM database). uv supplies Python 3.13 itself.

git clone <repository-url>
cd GTM_MCP_PROJ

uv sync --extra dev          # create the environment from the lockfile
cp .env.example .env         # optional: every value has a working default
docker compose up -d --wait db

Verify the server starts and answers:

uv run pytest                # 55 tests
uv run gtm-mcp-server        # starts on stdio; Ctrl-C to stop

Connect it to an MCP client

Claude Code

claude mcp add gtm -- uv --directory /absolute/path/to/GTM_MCP_PROJ run gtm-mcp-server

Claude Desktop — merge examples/claude_desktop_config.json into your config file (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS), replacing the path, then restart the app.

MCP Inspector — the official debugging tool, no install required:

npx @modelcontextprotocol/inspector uv run gtm-mcp-server

Then ask the agent "what GTM capabilities do you have?" — it will call server_info.

Configuration

Every setting is optional and read from GTM_-prefixed environment variables or .env; see .env.example for the full list. The ones that matter most:

Variable

Default

Purpose

GTM_DATABASE_URL

postgresql+asyncpg://gtm:gtm@localhost:5432/gtm

Mock CRM connection

GTM_ENABLE_WRITE_TOOLS

true

false runs a strictly read-only deployment

GTM_DRY_RUN_WRITES

false

true validates and audits without persisting

GTM_TRANSPORT

stdio

streamable-http for remote hosting

GTM_LOG_FORMAT

json

console for readable local development logs

Logs always go to stderr; stdout is reserved for the JSON-RPC stream.

Testing

Tests are written alongside the code and grouped by what they need:

uv run pytest -m unit             # fast, no I/O
uv run pytest -m mcp              # real in-memory MCP protocol sessions
uv run pytest -m integration      # requires PostgreSQL; skips cleanly without it
uv run pytest --cov               # everything, with coverage

The suite verifies behaviour and failure modes, not that code runs. Representative examples: startup survives an unreachable database instead of crashing; a bad DSN cannot hang startup; logs never reach stdout; personal data is redacted; success cannot be forged on a failed write.

Full quality gate, matching CI:

uv run ruff check . && uv run ruff format --check . && uv run mypy && uv run pytest

Roadmap

  1. Foundation — server, configuration, error taxonomy, audit contract, logging, test harness. ✅ Complete

  2. Mock CRM — schema, migrations, seed data, CrmRepository implementation, durable audit sink.

  3. Read toolscrm_query, then search_company and search_contact once an enrichment provider is selected on current evidence (D-013).

  4. Write toolssync_to_crm and save_to_list, with the full guardrail and audit path.

  5. Evaluation — measure whether an agent picks the right tool from a realistic GTM request, and whether it interprets write outcomes correctly.

License

MIT

Available Tools

1 tool
server_infoGTM server statusA
Read-onlyIdempotent

Report which GTM capabilities this server can currently perform.

Call this first when you are unsure whether a GTM capability is available, or when a data-modifying call has failed and you need to know whether writes are disabled. It takes no arguments, reads no customer data, and changes nothing.

Returns which tools are implemented versus merely planned, whether the CRM database is reachable, and whether write tools are permitted to modify data. Do not call tools listed under planned capabilities; they are not registered and the call will fail.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
versionYesServer package version.
environmentYesEnvironment the server is running in.
server_nameYesConfigured name of this server.
dry_run_writesYesWhen true, write tools validate and audit but never persist changes.
database_availableYesWhether the CRM database is reachable. CRM tools fail when false.
write_tools_enabledYesWhether write tools may modify data. When false they refuse every call.
planned_capabilitiesYesGTM capabilities that are designed but not yet callable. Do not attempt to call these.
implemented_capabilitiesYesGTM capabilities that are implemented and callable right now.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, but the description adds valuable context: it takes no arguments, reads no customer data, changes nothing, and returns specific status categories. There is no contradiction with annotations.

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 concise, front-loaded with the core purpose, and every sentence adds value. It avoids redundancy, clearly separates what the tool returns from when to use it, and is appropriately sized for the tool's simplicity.

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

Completeness5/5

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

With an output schema present, no parameters, and annotations covering safety traits, the description covers all necessary context: when to call it, what it returns, and what not to do. Nothing important is missing for an agent to invoke it correctly.

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 tool has zero parameters, and the description explicitly states it takes no arguments, which is sufficient. With no parameters to document, the description does not need to add parameter semantics beyond confirming the absence of inputs.

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 states a specific verb and resource: 'Report which GTM capabilities this server can currently perform.' It clearly identifies the tool's function and is not a tautology of its name or title. Even without siblings, it is unambiguous about what the tool does.

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

Usage Guidelines5/5

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

The description explicitly tells the agent when to call this tool: first when unsure about capability availability, or after a data-modifying call fails to check whether writes are disabled. It also advises against calling tools listed under planned capabilities, providing actionable routing guidance.

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. Dates show when Glama detected each change.

  1. 1 tool updatev0.1.0
    • First observedserver_info

TDQS

A4.4/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusion between tools. The server_info tool has a clear and singular purpose, so disambiguation is trivially perfect.

Naming Consistency5/5

The single tool is named server_info, which follows a clear noun_noun pattern. With only one tool there are no inconsistencies to evaluate, so naming is internally consistent.

Tool Count2/5

A server titled 'GTM MCP Server' would be expected to expose a range of GTM operations, but it exposes only a single information reporting tool. This falls at the 'too few' end of the scale for the apparent scope.

Completeness1/5

The server provides no tools for actual GTM management—no operations for tags, triggers, variables, containers, or any data modification. It only reports capabilities, leaving the domain severely uncovered.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to access a unified catalog of tools from various APIs (OpenAPI, GraphQL, MCP, Google Discovery) through the MCP protocol.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents to securely call MCP tools with risk scoring, checkpoints, rollback, and approval workflows.
    17
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP-native CRM backend for AI agents, enabling customer, opportunity, note, follow-up, and pipeline health management through 15 MCP tools.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to interact with multiple CRM systems through a unified set of MCP tools, such as finding contacts, accounts, and deals, while supporting mock, REST, and vendor-specific backends.
    MIT

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/vivz-git/Gtm-Mcp-Server'

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