O servidor: onde ficam as ferramentas
O processo que anuncia e executa suas capacidades.
O servidor: onde ficam as ferramentas é uma aula grátis de MCP Academy no CoddyKit. Esta é a aula 3 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de MCP Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de MCP Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
What Is a Server?
An MCP server is a standalone program that offers capabilities to AI. It is where your tools, data, and prompts actually live and run.
The Server Has No Model
A server never contains a language model. It just advertises what it can do and waits for a client to ask it to act.
Tools Live Here
The headline capability is tools: functions the model can invoke, like searching a database or sending an email. The server defines and executes them.
Resources Live Here Too
Beyond tools, a server can expose resources: read-only data such as files or records the model can pull in as context.
And Prompts
A server may also publish prompts: reusable, templated instructions a user can trigger. Tools, resources, and prompts are its three offerings.
A Tiny Server in Python
With the Python SDK you create a named server in one line. This FastMCP object will hold every tool you add.
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("weather")Adding a Tool
You turn a plain function into a tool with a decorator. The tool decorator tells MCP this function is callable by the model.
@mcp.tool()
def get_temp(city: str) -> str:
return "21C"Servers Advertise, Then Wait
A running server lists its capabilities on request, then sits idle. It only does work when a client sends it a call.
Servers Can Run Anywhere
A server might run as a local process on your machine or live remotely on the web. Either way, the protocol it speaks stays the same.
One Server, One Focus
Good servers stay focused. A weather server handles weather; a file server handles files. Small, clear servers are easy to trust and combine.
The Server Completes the Trio
Host, client, and server are the three MCP roles. The server is the worker that holds the real capabilities behind the scenes.
Quick Check
Pick what an MCP server is responsible for.
Recap
You learned the server: a focused, model-free program that advertises and runs tools, resources, and prompts for clients to use. Well done!
Perguntas Frequentes
A aula “O servidor: onde ficam as ferramentas” é grátis?
Sim — o texto completo de “O servidor: onde ficam as ferramentas” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de MCP Academy, atualize para CoddyKit PRO. O curso de MCP Academy inclui 4 aulas no total.
O que vou aprender em “O servidor: onde ficam as ferramentas”?
O processo que anuncia e executa suas capacidades. Você pratica MCP Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar MCP Academy?
Nenhuma experiência prévia é necessária. MCP Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 3 de 4.
Quanto tempo leva a aula “O servidor: onde ficam as ferramentas”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de MCP Academy?
Sim. Cada aula de MCP Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- O host: Claude Desktop e IDEs
- O cliente: um link por servidor
- O servidor: onde ficam as ferramentas
- Rastreando uma solicitação de ponta a ponta