Skip to content

~/services/ai/mcp-server-development

MCP server development so AI agents can use your system safely

A controlled door for AI into your system: it queries and acts only through the tools you allowed, with its own token and every call logged.

6 min read

$ cat ./mcp-server-development/what-you-get.md

  • Tools with clear names and validated input
  • One token per agent, revocable at any time
  • Permissions per tool, with read separate from write
  • Log of every call the agent makes
  • Usage and volume limits per token
  • Guide for connecting Claude and other clients

An MCP server is the door that lets an AI agent (Claude, ChatGPT, Gemini or an agent your company built) query and act on your system without anyone copying and pasting data into the chat. Instead of exporting a spreadsheet and asking "summarize this", the agent asks the system directly, and it can only do what you have allowed.

MCP stands for Model Context Protocol, an open standard released by Anthropic in late 2024 and now supported by several AI vendors. The specification and official documentation are at modelcontextprotocol.io. I build this kind of server in code, connected to the system you already have, and I run one on my own CRM.

A universal power strip receives tools while a robot holds the cable
The shared socket stands for AI access to the tools the system chose to offer.

What MCP Is, Without The Jargon

Think of a standard power outlet. Before, each AI needed a custom connector for each system, and each connector had its own rules. With MCP, your system describes once what it offers, and any compatible client understands it.

What the server offers comes in three kinds:

  • Tools: actions the agent can request, such as finding a customer, listing overdue orders or creating a task.
  • Resources: read-only data, such as a document or a record's history.
  • Prompts: ready-made request templates a person picks instead of writing everything from scratch.

In practice, nearly all the value is in the tools, and so is nearly all the risk.

What It Does For a Business

  • Query without exporting. "Which proposals have been stuck for more than ten days?" The agent calls the right tool and answers with current data, not yesterday's spreadsheet.
  • Act within limits. Add a note to a customer, open a task, prepare an email draft. Small things that eat time and that the agent does within the rules.
  • One door for several AIs. One person on the team uses Claude, another uses ChatGPT. The server is the same, and so are the permissions.
  • Agents that work on their own. An agent that runs every morning and prepares the day's summary uses the same tools. That topic has its own page: AI agents for business.

What I Deliver In An MCP Server

  • Well-defined tools. Each one does a single thing, with a clear name, a description the model understands and input checked in code. A "find customer by name" tool is safe to expose; a "run any database query" tool never goes in.
  • Token authentication. Each agent or person gets their own token. If one leaks, it is revoked without taking the others down.
  • Permissions per tool. One token can only read; another can create a task but not delete a customer. The permission is checked on the server on every call, not in an instruction to the model, which can be fooled.
  • A log of what the agent did. Every call is recorded: which token, which tool, with what input and what came back. When someone asks "who changed this?", the answer exists.
  • Limits. Calls per minute, maximum response size and pagination. An agent stuck in a loop doesn't bring the system down or pull the whole database at once.
  • Confirmation for anything sensitive. Deleting, sending something to a customer or changing an amount becomes a request a person approves, not a direct action.
An agent with its own token, an MCP server allowing task creation but not customer deletion, and a log of every call.
The server checks permission for each tool and logs every call.

The Proof: Rah CRM

Rah CRM is the system I run my business on every day, with customers, proposals, contracts and billing. External agents access the CRM over MCP, with tokens and per-tool permissions.

In Rah CRM, a person confirms an AI proposal; creating a token requires a password and code, and the database audit trail only accepts inserts.
In Rah CRM, human approval, authentication and auditing are enforced by the server.

The rules that apply to the AI inside the CRM apply to the one outside. Prices never come from the AI, and whatever it proposes stays flagged until someone confirms it. Creating an API token asks for the password and a code again, and the audit trail only accepts inserts, enforced by a trigger in the database itself. That is the level I bring to a client's MCP server: the rule lives on the server, and the agent goes through it like any other user.

Security: The Part That Matters Most

Other safeguards that go into every project:

  • Return only what's needed. The tool that finds a customer doesn't need to return their tax ID and address if the request is about a proposal's status.
  • Personal data with a purpose. If the system stores personal data, what the AI can access follows the applicable data protection law (in Brazil, the LGPD, similar to the GDPR), with restricted access and logging.
  • Testing before production. The server first runs against an environment with fake data, and only then gets a production token.

When You DON'T Need An MCP Server

  • The integration is between two systems, with no AI in the middle. Getting a store order into the ERP is systems integration, with an API and webhooks.
  • The goal is for AI to answer from documents. Manuals, contracts and policies call for RAG for business, with search and cited sources.
  • The vendor already offers an official server. If a tool you use already publishes its own MCP server, use theirs. I build servers for systems that are yours.
  • Nobody uses AI day to day yet. In that case, start with one concrete task before opening the door.

Tell me which system you want to open up to AI and what the agent should be able to do in it. I'll reply with the tools I would expose and the ones I would leave out.

Frequently Asked Questions

What is MCP, in one sentence?

It is an open standard for connecting AI agents to systems: your system describes the actions it offers, and any compatible client, such as Claude or ChatGPT, can use them with the permissions you set.

Does an MCP server let the AI touch everything in my system?

No. The agent only sees the tools allowed for its token. If an action isn't on the list, it doesn't exist for that agent, no matter what the model tries.

How much does it cost to build an MCP server?

It depends on how many tools, whether your system already has an API and the level of control you need. After a short conversation I send a proposal with scope, timeline and price.

Does it work with Claude and ChatGPT?

MCP is an open standard supported by several AI clients. At delivery I test the connection in the clients your team uses and leave a guide for connecting each one.

Where This Is Already Live

Related Services

Next step

Didn't Find Your Case in the List?

Tell me about the problem through the form. If I'm not the right person, I'll say so and point you to someone who is.