LabscoMCP early access ↗
CDataSoftwareMCP SERVER

Google Analytics MCP Server by CData

Ask questions of live Google Analytics data in plain language — a read-only MCP server that models Google Analytics as SQL tables through CData's JDBC driver.

by CDataSoftware ↗SaaS-to-SQL ConnectorsCommunity

LABSCO SUMMARY

Read-only by construction.

Three tools and no write path is the whole design: the model discovers tables, reads columns and runs SELECTs, so a badly framed question produces a wrong answer rather than a changed record. Two things decide whether it fits. The CData JDBC driver is a separate licensed product, with a trial key to start on. And the assistant can query every table the connection can see — the Tables field in the connection profile does not narrow that, so limit the connection or the account it signs in with.

What it is

A read-only MCP server built on CData's JDBC Driver for Google Analytics. The driver exposes Google Analytics as relational tables; the server puts three tools over it, so a client can discover what tables exist, read a table's columns, and run a SELECT — without anyone writing SQL by hand.

What you get

  • The tables the driver exposes for Google Analytics, returned as CSV with a header row — googleanalytics_get_tables
  • The columns of one of those tables, also as CSV, so a query can be composed against real field names — googleanalytics_get_columns
  • A SQL SELECT executed against live Google Analytics data — googleanalytics_run_query
  • Tool names that carry the prefix you set in the connection profile — the sample uses Prefix=googleanalytics — so several CData servers can run side by side without colliding
  • A Tables setting that only picks which tables also get a ready-made description (blank means none); it does not limit what the tools can list or query, so limit the connection or the account it signs in with

Requirements

Java and Maven to build — mvn clean install produces CDataMCP-jar-with-dependencies.jar. The CData JDBC Driver for Google Analytics is a separate download and needs licensing: run java -jar cdata.jdbc.googleanalytics.jar --license and enter a name, an email and either TRIAL or a licence key. Connection settings go in a .prp file carrying Prefix, ServerName (the sample uses CDataGoogleAnalytics), ServerVersion, DriverPath, DriverClass (cdata.jdbc.googleanalytics.GoogleAnalyticsDriver), the JdbcUrl produced by the driver's connection-string utility, and the optional Tables list. The client then launches java -jar CDataMCP-jar-with-dependencies.jar <YOUR_PRP_FILE>.prp. Transport is stdio, so the server has to run on the same machine as the client. If the data source authenticates over OAuth, you approve it in a browser while building the connection string.

Setup effort

Build from source — clone the repository, then point your client at the binary