Click Smith

How we connected a client's Grok assistant to their internal database

A client had Grok connected to email and their CRM, but their own internal tools had no connector. Here is how we linked Grok to their internal database, and how we do the same for whichever AI system a business uses.

Author
Ali Haji · Co-Founder, Click Smith
Published
Updated
Updated
Reading time
4 min read
Title card reading Connecting Grok to an internal database, beside a chat assistant linked to email, contact and calendar icons with a red cable being plugged into a database server

A client came to us with a specific problem. Their office uses Grok as its AI assistant, and they had already connected it to email, their CRM, and the other apps Grok supports with a built-in connector. They got stuck on the software they had built for themselves. Their internal tools and the database behind them had no connector, so Grok could not see any of it.

In practice the AI could summarize an email thread or pull up a contact, but someone still had to look up anything stored in the internal tools and paste it into the chat. They wanted one AI brain for the whole company, and the data from their own tools was missing from it.

They asked us to connect the two.

Why built-in connectors only go so far

Every major AI assistant comes with a catalog of connectors for popular software: email, calendars, file storage, CRMs. Switching one on takes a few clicks because the AI company has already written the integration.

The catalog covers software that thousands of businesses share. It can't cover the job tracker a developer built for your company six years ago, or the database your operations team designed around the way you work. No AI company has seen those systems, so no connector for them exists.

Our client had reached that limit. Everything with a ready-made connector was already connected, and the tools they had built in-house were the ones left out.

How we connected Grok to the internal database

Grok accepts custom connectors. xAI's documentation describes this as bringing your own MCP server. MCP, short for Model Context Protocol, is an open standard for telling an AI assistant which tools it can use and what information each one needs.

We built a small service that sits between Grok and the client's database. It gives Grok a short list of named tools, and each tool is one kind of question the business needs answered from its own records. When someone asks Grok something that needs internal data, Grok calls the matching tool, the service runs the lookup, and the answer comes back into the conversation. Grok never connects to the database directly. It can only ask the questions we built tools for.

We made two choices to keep the project safe. The first was to start read-only. The connector can look records up, and it cannot change or delete them. Letting the AI write back to a system is a separate decision that we take one action at a time, after the team has checked the answers it gives.

The second was to enforce the limits inside the connector. The service decides which tables can be read, how many rows come back, and how long a query may run, so nothing depends on the AI following instructions. xAI's own database example takes the same approach.

Setup on the Grok side was short. On Grok's Business and Enterprise plans, an admin adds the custom connector once in the xAI console, and each team member then switches it on in their own Grok account. From then on, staff ask about internal data the same way they ask about anything else.

We studied the office before we built anything

Every project we take on starts with a full study of how the client works. We go through the tasks people do each day and the systems they open to do them. We pay particular attention to information that gets copied from one tool to another by hand, because that is usually where a connection saves the most time. We did the same here before writing any code.

The study decides what gets connected. An internal database can hold hundreds of tables, and exposing all of them gives the AI more ways to return a wrong answer. Watching the work shows us which lookups people repeat all week, and those become the first tools. It also shows us where AI can take over a whole task, and where a person should keep doing it.

Whichever AI system you use, we can connect it

A couple of years ago, AI at work meant someone with a chatbot open in a browser tab. Today nearly every company has its own AI system. Some run ChatGPT, others Claude or Gemini, Microsoft offices tend to use Copilot, and this client chose Grok.

We work with all of them, and custom connections like this one are a regular part of what we do at Click Smith. The method in this case study carries over, because OpenAI, Anthropic, Google, Microsoft and xAI all support MCP. A connector built for one assistant can usually be reused if you add a second one or switch later. You keep the AI you already chose, and we connect it to the parts of your business it can't reach yet.

How to tell if your AI is missing a connection

Two signs are easy to spot. People copy data out of an internal tool and paste it into the AI chat before they ask their question. And the AI answers general questions well but has nothing to say about your own orders or customers.

If either one is familiar, the data is probably sitting in a system with no built-in connector, and a custom connector is the fix.

Start with a workflow review

Tell us which AI system you use and which tool it can't reach. We start with the workflow study and then tell you what is worth connecting and what should be left alone.

If you want the AI to carry out the task as well as answer the question, that is the work our custom AI agents do.

Call back · 15 minutes

Let's talk.

Leave a number. We call back within 15 minutes during business hours.

One call. No spam.

Questions this post raises

Can Grok connect to an internal database?

Yes. Grok supports custom connectors built on the Model Context Protocol (MCP). You run a small service in front of the database that offers specific lookups as tools, then add its address to Grok as a custom connector. On Business and Enterprise plans, an admin adds it in the xAI console first.

What is the difference between a built-in connector and a custom connector?

A built-in connector is written by the AI company for popular software such as email, calendars and CRMs, and you switch it on in settings. A custom connector is built for one business, to reach software the AI company has never seen, such as an in-house tool or a private database.

Is it safe to connect an AI assistant to our internal data?

That depends on how the connector is built. We start read-only, offer only the lookups your team needs, and enforce those limits in the connector itself, so the AI cannot run anything we did not build a tool for. The database password stays inside the connector and is never shared with the AI.

Do you only work with Grok?

No. We connect ChatGPT, Claude, Gemini, Microsoft Copilot and Grok to internal tools and databases. All of them support MCP, so a connector built for one can usually be reused with another.

What do you do before building a connector?

We study the workflow first: the daily tasks, the systems people use for them, and the places where data is moved by hand. That tells us which lookups to build first and where AI will save the most time.