"Best analytics tool I've used in 14 years"

Get started with MCP

Connect your AI assistant to DataFast to ask about traffic, revenue, and custom goals, or manage website operations you authorize. You need a DataFast account with API access.

Choose how to connect

Choose one method. Both use Streamable HTTP to communicate with DataFast.

  • Sign in with OAuth — recommended for clients that offer OAuth sign-in, including Codex and Claude Code. Select websites and permissions on DataFast; the client handles its connection token automatically. You do not create or copy an API key.
  • Use an API token — for clients that ask for a Bearer token, or workflows that need account and credential-management tools. Create a scoped account token in DataFast and add it to your client's configuration.
OAuth provides analytics and selected website tools. Account tokens can also authorize broader administration tools, depending on the permissions you select. See the tool reference for what each method supports.

Connect with OAuth

1. Add DataFast to your client

Add a remote MCP server with the URL below and choose OAuth or Sign in.

https://datafa.st/api/mcp

For Codex, add the server using dynamic client registration and complete the browser sign-in:

codex mcp add datafast --url https://datafa.st/api/mcp \
  --oauth-client-registration dcr
Use a current Codex version with the registration option. To sign in again later, run codex mcp login datafast with --oauth-client-registration dcr. See Codex MCP configuration. If DataFast is already configured with a Bearer token, remove that credential from the client's DataFast configuration before switching to OAuth.
For Claude Code, add the server, then open /mcp inside Claude Code and authenticate DataFast:
claude mcp add --transport http datafast https://datafa.st/api/mcp

2. Sign in and approve access

  1. Sign in on datafa.st with your existing DataFast account.
  2. Select the websites this client may access.
  3. Review the requested permissions. Read permissions are selected by default; enable writes only if you want the client to make those changes.
  4. Select Allow access to return to your client.

DataFast issues the client an access token for that connection. The client stores it and refreshes it automatically while the connection remains valid. Your DataFast password, dashboard session, and existing API keys are not shared with the client.

3. Try it

Start a conversation with DataFast enabled and ask:

List my available websites, then show visitors and revenue for my website over the last seven days.

Confirm the website and date range before continuing. Your plan and permissions still apply.
Manage or revoke the connection under Settings → API / MCP → Connected apps. Reconnect when DataFast asks you to approve access again, or when you want to share different websites or permissions.

Connect with an API token

Use this method when your client asks for an API key or Bearer token. For MCP, start with an account access token, which begins with dft_.

1. Create an account token

  1. Open Account settings → API / MCP.
  2. Under New access token, choose Specific websites to restrict access, or All websites if that is what your workflow needs.
  3. Select only the permissions you need. For an analytics connection, start with Websites → Read and Analytics → Read, with all other permissions disabled.
  4. Give the token a recognizable name, select Create token, and copy the dft_ value. It is shown only once.
Where to create a DataFast account token

2. Add the token to your client

Use https://datafa.st/api/mcp and send the token as an Authorization: Bearer … header. Keep it in the client's credential settings or an environment variable, outside source control and chat messages.
Codex: make your token available as the DATAFAST_TOKEN environment variable, then run:
codex mcp add datafast \
  --url https://datafa.st/api/mcp \
  --bearer-token-env-var DATAFAST_TOKEN
Claude Code: replace dft_xxx with your token:
claude mcp add --transport http datafast https://datafa.st/api/mcp \
  --header "Authorization: Bearer dft_xxx"
Cursor: add this entry to your mcp.json. Make DATAFAST_TOKEN available in Cursor's environment; Cursor expands the environment variable when connecting.
{
  "mcpServers": {
    "datafast": {
      "url": "https://datafa.st/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DATAFAST_TOKEN}"
      }
    }
  }
}
Other clients: enter the server URL and Bearer token in their remote MCP settings. Clients that only support local stdio servers need a bridge such as mcp-remote.

3. Try it and manage access

Ask your client to list your available websites, then request visitors and revenue for one website over the last seven days.

Manage the token under Your access tokens in Account settings → API / MCP. Use Edit permissions to change what it can do, Roll to replace its secret, or Delete to revoke it. After rolling a token, update the value in your client.
Already have a df_ website API key? The general MCP endpoint accepts those too, with access tied to that website. Check API authentication for the operations it supports. You can also restrict an account token to one website using Specific websites above.

How access is limited

Both methods give the client a secret credential. OAuth automates issuing and renewing that credential after your consent; an API token is a credential you create and configure yourself.

DataFast checks the credential, permitted action, website access, current membership, and applicable account or plan restrictions on the server. A website ID in a tool request is a target to check, not proof of access. For example, an OAuth connection approved to read Website A cannot read Website B or edit Website A.

OAuth connections have a fixed list of approved websites; new websites are not added automatically. OAuth tokens expire after one hour, refresh automatically for up to 30 days from issuance, and require fresh consent after at most 90 days. Account tokens stay valid until you roll or delete them, subject to your account access and permissions.

OAuth tokens work only at the MCP endpoint they were issued for. They cannot be pasted into the public REST API or used to sign in to the DataFast dashboard. Account tokens also work with the supported REST API endpoints.

Safety

  • Start with limited access. Give the client only the websites and permissions it needs. OAuth excludes API-key management, account-token management, and account-wide administration.
  • Review changes. OAuth write tools require confirmation and a retry key. API-token tools require confirmation for sensitive operations such as deleting data or issuing credentials. These checks supplement the client's confirmation UI; they do not replace choosing a trustworthy client.
  • Keep credentials private. Both methods use Bearer tokens: someone who obtains a valid token can use its permitted access until it expires or is revoked. Never put credentials in URLs, source control, or chat messages.
  • Disconnect when needed. Revoking an OAuth connection blocks subsequent requests and refreshes. A request already running may finish, and data already shared with the other app is not deleted by revocation.
  • Dashboard-only operations stay in the dashboard. MCP cannot delete websites or connect/disconnect payment providers.
For exact scopes, token handling, and OAuth client implementation details, see the OAuth reference.

Next steps

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown