datatomcp

ChatGPT MCP: add a custom MCP server (and query a spreadsheet)

To add a remote MCP server to ChatGPT, open Plugins, click the plus button, choose Add custom MCP server, and enter the server’s public HTTPS URL with OAuth as the authentication. After you acknowledge the risk warning and sign in, the server’s tools are available in your chats. On some accounts the option only appears after you turn on developer mode. OpenAI has renamed this feature several times (connectors, then apps, then plugins), so older guides show different menus; both current routes are below.

The example connects a CSV or Google Sheet through datatomcp, so ChatGPT filters and totals rows with exact results instead of analyzing a one-off upload.

What you need

  • A ChatGPT plan that allows custom MCP servers. On Business, Enterprise and Edu, a workspace admin may have to enable custom MCP first. Plans and menu names change, so check OpenAI’s help article if yours differ.
  • An MCP server reachable on the public internet. ChatGPT connects from OpenAI’s servers, so localhost won’t work.
  • For the example: a datatomcp account with a dataset. Import a CSV, a CSV link or a Google Sheet under Add data.

1. Add the server

  1. In ChatGPT, open Plugins, click the plus button and choose Add custom MCP server.
  2. Enter a name (datatomcp) and, optionally, a description.
  3. Under Connection, enter the MCP server URL: https://app.datatomcp.com/mcp.
  4. Set authentication to OAuth. ChatGPT registers itself with the server automatically.
  5. Read the risk warning, tick I understand and want to continue, and create it.
  6. Sign in when asked. For datatomcp, a datatomcp sign-in and a consent screen appear; allow read access to your datasets.
  7. ChatGPT lists the tools it found. For datatomcp: list_datasets, describe_dataset, query_rows, aggregate and distinct_values.

If you don’t see “Add custom MCP server”: turn on developer mode (recent builds put the toggle under Settings → Security and login; older ones under Settings → Apps → Advanced settings), then look for Create or Create MCP App on the same page. The fields are the same.

If datatomcp shows up in ChatGPT’s plugin directory for you, connecting from there leads to the same sign-in.

2. Use it in a chat

Start a new conversation and select the server (type @ and pick it, or use the plus menu in the message box). Then ask:

Using datatomcp, what were total sales per country last quarter? Show the top five.

ChatGPT calls describe_dataset, then aggregate with a group_by on country, a date filter and a sum. The numbers come from a database query over every row, and the result names the dataset version it used.

How to check it worked

  • The server shows as connected in Plugins, with its tools listed.
  • In the answer, ChatGPT shows which tool it called. Expand it to see the input and the raw result.
  • If it answers from general knowledge instead, select the server for that chat and name it in the prompt.

Troubleshooting

  • The option to add a server is missing. Your plan or workspace may not allow it, or your account still uses the developer-mode route above. OpenAI support also suggests trying a private window or another browser when the toggle doesn’t show.
  • “Couldn’t connect” when creating it. The URL must be public HTTPS and end in the server’s MCP path (/mcp for datatomcp).
  • Tools changed on the server but ChatGPT shows the old list. Open the server in Plugins and click Refresh, then start a new conversation.
  • Sign-in loops. Remove the server, add it again and complete the sign-in in the same browser.

Tips for spreadsheet questions

  • Ask ChatGPT to call distinct_values before filtering on a text column, so it uses the exact spelling in your data (“United States”, not “USA”).
  • For row-level questions (“list the 20 largest orders”), it uses query_rows with order_by and limit.
  • The tools are read-only. ChatGPT can’t change your data.
  • Click Refresh now on the dataset page after the source changes, or let Pro check linked sources every 5 minutes.

FAQ

Is this the same as uploading a file to ChatGPT? No. An upload is a one-off copy with size limits, and totals depend on the code ChatGPT writes that time. A custom MCP server keeps the data in one place, current, and computes totals with a database. See ChatGPT and Claude CSV limits.

Does it work in the ChatGPT mobile app? Set it up on the web. Check OpenAI’s help article for where custom servers currently run.

Can I use the same server in Claude or Cursor? Yes, the URL is the same. See Claude MCP connectors and Cursor MCP, or all clients.