All articles
MCP · AI integration

What is an MCP server? Opening your own data to AI

What an MCP server is, what it is for and how to build one, with real decisions from KBÜ MCP, which opens 140+ university websites to Claude and Cursor.

When you wanted an AI assistant to answer from your company’s documents, product catalogue or order system, you had two options: copy and paste everything by hand, or write a separate integration for every model. MCP (Model Context Protocol) puts a standard door between the two.

What does an MCP server do?

An MCP server is a small program that offers tools and data to an AI application such as Claude, Cursor or Codex. The model does things like “search for this document” or “read this record” by calling those tools. The key point: once a tool is exposed over MCP, every assistant that speaks the protocol can use it. No per-model integration.

  • Client (host): the app the user talks to. It discovers the available tools from the server.
  • Server: the layer in front of your data. It decides which tools exist, their inputs and permissions.
  • Tool: one job with a name, a description and inputs, e.g. search or read_document.

A real example: KBÜ MCP

Karabük University’s information is spread across dozens of sub-sites, scanned PDFs and spreadsheets. Ask a general assistant about the cafeteria fee or a regulation clause and you often get a made-up answer. In KBÜ MCP I crawled and indexed 140+ sites and exposed the result through a remote MCP server with 10 tools: search, document reading, academic profiles, menus, academic calendar, phone directory and more.

The result: ask Claude or Cursor “how much is the cafeteria?” and the model calls the tool, reads the source and answers with a link and a date.

Decisions I made building it

  1. Few, clear tools. Tool choice depends on descriptions. Small tools that say exactly when to use them get called correctly far more often than one tool that does everything.
  2. Do heavy work up front. OCR runs at index time, not query time, so nobody waits on a scanned document.
  3. Grounding rules. The server tells the model to rely only on returned sources, to say “not found” when nothing matches and to cite. It is the cheapest way to reduce hallucinations.
  4. Measure. I scored search accuracy on my own question set: recall@5 = 96%. You cannot improve an assistant you do not measure.
  5. Production details. Opening a remote MCP server without API-key auth, rate limits and error logs is asking for trouble.

Common mistakes

  • Exposing the raw database. Define narrow, task-shaped tools instead of giving the model SQL access.
  • Ignoring tool descriptions. The description is the model’s instruction; a vague one means wrong calls.
  • Leaving security for later. If tools read external content, that content can look like instructions to the model. I cover this in the prompt injection article.

Who is it for?

Organisations with lots of documents (universities, municipalities, law and accounting firms), e-commerce companies that want assistants to see products and orders, and teams that want to use internal tools through AI. If your data already lives in a database or a website, opening it through a secure MCP server is usually a matter of weeks.

Architecture details, the flow diagram and measurements are on the KBÜ MCP project page.

Want a similar system built on your own data?

Let's talk about your project