What does an MCP server expose?
An MCP server is a program that gives an AI assistant tools, data and prompts through the Model Context Protocol. It exposes three things: tools, which are actions the assistant can call; resources, which are data the assistant can read; and prompts, which are reusable templates.
| What it exposes | What it is |
|---|---|
| Tools | Actions the assistant can call. |
| Resources | Data the assistant can read. |
| Prompts | Reusable templates. |
How do you make an MCP server, step by step?
To make an MCP server, list the actions and data the assistant needs, choose an SDK in a language you already use, define each tool with a short name, a description and typed inputs, choose a transport, add authentication and permissions, test with an MCP client, and deploy with logging. The steps below explain each one.
| Step | What to do |
|---|---|
| 1 | List the actions and data the assistant needs, and write down what it must never do. |
| 2 | Choose an SDK. Official SDKs exist for many languages, including TypeScript, Python, Java, Kotlin, C# and Go, so use the one you already work in. |
| 3 | Define each tool with a short name, a description written for the model and typed inputs. Keep each tool narrow. |
| 4 | Choose the transport: stdio for a local server, Streamable HTTP for a remote one. |
| 5 | Add authentication and permissions. MCP defines an OAuth-based authorization flow for servers reached over HTTP. |
| 6 | Test with an MCP client. Call each tool and check its inputs and outputs. |
| 7 | Deploy, then log each tool call and review what is being called. |
How do you write the code?
The SDKs let you write an MCP server by registering each tool with a name, a description and input fields, then connecting a transport. Function signatures change between SDK versions, so follow the current documentation for your language, and test each tool with an MCP client before you rely on it.
How Do You Test an MCP Server?
Test an MCP server with an MCP client before you deploy it. Connect the client, call each tool, and check that its inputs and outputs are what you defined. Then test the permissions too, to confirm the assistant can do only what you allowed.
How do you keep an MCP server safe?
Each tool you expose is a way in, so give the assistant the least access it needs. Make tools read-only by default, set permissions tool by tool, and put a named person in front of any action with real consequence.
When should you get help?
Get help if you would rather have an MCP server built for you, or if the server must reach several internal systems. HEU.AI's MCP server development services cover discovery, build, handover and operation, and the first stage ends with a written assessment whether or not you go ahead. See also our LLM integration services and agentic AI development services.