Search by

datacircle / php-mcp-tools

datacircle

Find the best GTM APIs. This package adds four tools to an MCP server made with PHP MCP Server. The tools call Datacircle's public API. You need no API key.

v0.1.0 2026-11-23 14:10 UTC

This package is auto-updated.

Last update: 2026-11-23 14:11:43 UTC


README

Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.

Our website: https://datacircle.dev

This package adds four tools to a server made with PHP MCP Server (php-mcp/server). The tools call Datacircle's open API, https://api.datacircle.dev/v1. You need no key and no account.

Tool What the tool gives Call
datacircle_list_apis Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan GET /apis
datacircle_best_plans One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls GET /apis/{slug}/best
datacircle_search_plans Plans that match a provider or plan name, on all APIs or on one API. You can sort them by score, provider or price GET /plans
datacircle_provider The APIs a provider sells, and the provider's rank on each API GET /providers/{slug}

Install

composer require datacircle/php-mcp-tools

You need PHP 8.1 or later and php-mcp/server 3.2.0 or later.

Add the tools to your server

Pass your server's builder to Datacircle::addTools():

<?php

require __DIR__.'/vendor/autoload.php';

use Datacircle\PhpMcp\Datacircle;
use PhpMcp\Server\Server;
use PhpMcp\Server\Transports\StdioServerTransport;

$builder = Server::make()->withServerInfo('My server', '1.0.0');
Datacircle::addTools($builder);

$builder->build()->listen(new StdioServerTransport());

You can add your own tools next to ours with withTool() or discover(). To add one tool alone, call Datacircle::addTool($builder, Datacircle::BEST_PLANS). Our tools also work over StreamableHttpServerTransport.

To try the server, open the MCP Inspector:

npx @modelcontextprotocol/inspector php server.php

What the model reads

Each tool gives a JSON object as text. Each plan comes with a rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. That page lists every field.

For an unknown slug, the tool gives an error result with the API's message. If the network fails, the error gives the network's message. The model can then call the tool again and keep going. The server checks the arguments against each tool's input schema before the tool runs. If the arguments are wrong, the client gets an error from the server.

The annotations mark all four tools as read only.

Make each call yourself

You can make each call from PHP without running the MCP server. You get the tool's answer as an array:

use Datacircle\PhpMcp\Datacircle;

$answer = Datacircle::bestPlans(['slug' => 'email-finder', 'limit' => 3]);
print_r($answer['plans']);

The other calls are Datacircle::listApis(), Datacircle::searchPlans() and Datacircle::provider().

Network

Each tool call sends HTTPS GET requests to https://api.datacircle.dev/v1 and nowhere else. Most calls send one request. datacircle_search_plans sends up to three when the first search finds nothing. The requests hold only the tool's own arguments: no key and nothing from your chats. The API takes up to 60 calls a minute from one IP address. The tool waits once, for a minute at most, when the API says to wait. The package stores nothing.

The tools call through PHP's curl extension. Without curl, they use PHP's own HTTPS streams. To call through a PSR-18 client of your own, such as Guzzle, pass new \Datacircle\PhpMcp\Client(http: $httpClient) as the last argument of addTools(). Use this to add a proxy or a timeout.

Links

MIT license.