Send your first MCP analytics event
Go from an existing server to a verified event in four small steps. Keep your tools unchanged and see the result in the dashboard.
Create a key
Install the SDK
Wrap the server
Verify one call
Start with a workspace.
Sign in to TrackMCP, create a workspace key, and keep it in the environment of the process that runs your server.
Never commit the key or put it in a tool argument.
TRACKMCP_KEY=tmcp_...One line at the boundary.
Install the SDK and wrap the existing server object. Your tool definitions and client-facing responses stay the same.
// observe the server you already ship$ npm install @trackmcp/sdk import { withTrackMCP } from "@trackmcp/sdk"import { server } from "./mcp" export default withTrackMCP(server, { apiKey: process.env.TRACKMCP_KEY, service: "acme-mcp-server",});Make one real tool call.
Restart the server, connect from an MCP client, and call one tool. The dashboard should show the client, session, call, timing, and result state.
Success looks like a live event
Errors returned inside a successful HTTP response remain visible as application errors.
First event received
acme-mcp-server · just now
Check the simple things first.
No event
Confirm the process has the right key and make a real tool call after restarting the server.
Wrong workspace
Check that the key belongs to the workspace you are viewing.
Sensitive data
Redact arguments and results locally. Send only the metadata your team needs.
Ready to observe your server?
Start with one real workflow.
Create a workspace, wrap the server, and make the first call.