Benchmarks Show MCP Outperforms REST for GitLab AI Agents on Tokens and Latency
A developer published benchmarks comparing the Model Context Protocol (MCP) with GitLab's traditional REST API for autonomous AI coding agents. The REST API returns bulky JSON payloads full of UI fields that waste LLM context tokens, while MCP resources deliver compact, model-oriented context. In the reported tests, MCP reduced payload size by about 92% and cut prompt token cost roughly 12.6 times, with parsing latency falling from 185 ms to 12 ms. Schema-constrained MCP search also eliminated the parameter errors seen in unconstrained REST queries, which occurred in about 22% of 100 tasks. The author, who contributed to GitLab's MCP implementation, presented these results as evidence that MCP suits agentic workflows better than REST.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in