Cr3ativ.ai / Answers

How to build an MCP server

To build an MCP server you choose the questions and actions to offer, write each one as a tool with an official SDK, add sign-in, host the server at a secure web address and test it in the assistant your team uses. The code for a simple read-only server is short: the hard part is permissions, security and knowing the rules of your own system. And yes, you can create an MCP server for your website.

By Elazar Gabay, founder of Cr3ativ.ai. Updated .

What do you decide before writing code?

Four choices shape the whole build, so settle them first.

DecisionOptionsUsual choice for a company
Where it runsLocal, on one computer, or remote, as a hosted serviceRemote, so the whole team can use it
Connectionstdio for local, Streamable HTTP for remoteStreamable HTTP
Sign-inNone, one shared key, or OAuth per personOAuth, so each person signs in as themselves
AccessRead only, or read and writeRead only first, write actions later with approval

What are the steps to build an MCP server?

Seven, and the first one has nothing to do with code. You start with what your people actually ask.

  1. List the first questions. Write down the ten things your team asks most often and which system holds each answer. A buyer’s “Which styles are running low?” A customer service rep’s “Where is this order?” Each one becomes a candidate tool.
  2. Pick an SDK. The official tutorial at modelcontextprotocol.io has versions in Python, TypeScript, Java, Kotlin, C#, Ruby, Rust and Go. The SDK handles the protocol, so you write only the tools.
  3. Write each tool. A tool has a name, a description in plain language, a list of inputs and the code that fetches the result. The description matters most, because it’s what the assistant reads to decide when to use the tool.
  4. Add sign-in and permissions. The protocol recommends OAuth for remote servers. Decide what each role may see, and enforce it in the server, not in the prompt.
  5. Host it. A remote server needs a public HTTPS address. Claude connects from Anthropic’s cloud, so a server that sits only on a private network won’t be reached unless the firewall allows it.
  6. Test it. The MCP Inspector is the official tool for calling a server by hand. Then add the server to Claude as a custom connector, or to ChatGPT as a custom MCP server, and ask real questions.
  7. Roll it out and watch the log. The questions people really ask will show you which tools to fix and which to add.

Can you create an MCP server for your website?

Yes. If your site has a catalogue, orders, bookings or a knowledge base, an MCP server can offer them as tools: search the catalogue, check an order, find an opening, look up a policy. The server talks to the same database or API that your website uses.

Say you run a clinic with online booking. Someone asks an assistant: “Is there an opening on Thursday afternoon?” The assistant calls your booking tool and answers with the free slots, the same ones your website would show.

There are two different audiences. A server for your own staff is added privately by its address. A server for the public has to be listed by each AI vendor: Anthropic reviews connectors before listing them in its directory, and OpenAI has its own process. Check each vendor’s current rules before you plan a public launch.

This is separate from making your pages easy for AI search to read. That’s a content task. An MCP server gives an assistant live actions, not pages.

What goes wrong most often?

Rarely the code. It’s usually one of these six.

  • Too many tools. Copying every API address into a tool confuses the assistant. A short list named after real tasks works better.
  • Vague descriptions. If two tools sound alike, the assistant picks the wrong one.
  • One shared key. Anthropic’s help centre warns that everyone using a shared credential gets that credential’s access. Per-person sign-in avoids this.
  • Write actions without approval. Anything that sends, changes or deletes should wait for a person.
  • Results that are too large. Vendors set limits on the size of a tool result and on how long a call may run. Return summaries, not whole tables.
  • Trusting the content. Both Anthropic and OpenAI warn that text returned by a tool can contain hidden instructions. Treat what a tool returns as data, never as orders.

Should you build it yourself or have it built?

Build a small one yourself to learn. A developer can follow the official tutorial and have a local server answering in Claude Desktop in an afternoon. That’s a good way to see what MCP is.

A server for your whole company is a different job. It needs per-person sign-in, permissions by role, an audit log, hosting, monitoring and someone who understands how your ERP really works. If you don’t have that team, Cr3ativ.ai offers custom MCP server development at a fixed scope.

Common questions

Which programming language should I use for an MCP server?

Use the one your team already knows. The official tutorial covers Python, TypeScript, Java, Kotlin, C#, Ruby, Rust and Go. Python and TypeScript have the most published examples.

Do I need to know machine learning to build one?

No. An MCP server is ordinary software: it receives a request, checks permissions, fetches data and returns it. The AI model is supplied by Claude or ChatGPT.

Will one server work in both Claude and ChatGPT?

In principle yes, because both support the MCP standard. Each vendor has its own sign-in details, limits and plan rules, so test in both and check the vendor’s current plan page.

How do I test an MCP server before giving it to my team?

Start with the MCP Inspector, which lets you call each tool by hand. Then connect the server to a test account in the assistant itself and ask the questions your team will ask.

How long does it take to build an MCP server?

A demo with one or two tools can take hours. A production server depends on the number of systems and the rules behind them. Cr3ativ.ai’s single-integration starter takes 5 business days and a build of up to five tools takes 2 weeks.

Read next

Book a free 30-minute call or call (212) 729-7867.