About MCP Server
This project is a Node.js and TypeScript MCP server using Express and the official MCP SDK. It provides a local HTTP endpoint and basic instructions for running and inspecting the server.
Key features
- 01Node.js and TypeScript implementation
- 02Express-based server
- 03MCP endpoint at /mcp
- 04Build and start scripts
- 05MCP Inspector testing instructions
Use cases
- 01Run a local MCP server during development
- 02Build the TypeScript project
- 03Inspect MCP requests and tools over HTTP
MCP support
Implements an MCP server with a POST /mcp endpoint for MCP requests. The README explains how to connect the external MCP Inspector.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server
Este projeto é um servidor MCP (Model Context Protocol) implementado em Node.js com TypeScript.
Como executar
- Instale as dependências:
npm install - Compile o projeto:
npm run build - Inicie o servidor:
npm start
O servidor ficará disponível em http://localhost:3000/.
Endpoints principais
POST /mcp: Endpoint principal para requisições MCP.GET /: Mensagem de status do servidor.
Desenvolvimento
- O código fonte está em
src/. - O build gerado vai para
dist/. - O servidor utiliza Express e o SDK oficial do Model Context Protocol.
Ferramentas de inspeção
Para testar e inspecionar seu servidor MCP, utilize o MCP Inspector oficial.
Como usar o MCP Inspector
O MCP Inspector não roda embutido no seu servidor MCP. Ele é uma ferramenta externa, feita para se conectar ao seu endpoint MCP via HTTP, assim como Postman ou Insomnia, mas com suporte nativo ao protocolo MCP.
Opção 1: Usar o site oficial
- Acesse: https://inspector.modelcontextprotocol.org/
- No campo de conexão, digite o endpoint do seu servidor, por exemplo:
http://localhost:3000/mcp - Clique em conectar para acessar a interface visual.
Opção 2: Rodar localmente
- Execute no terminal:
npx @modelcontextprotocol/inspector http://localhost:3000/mcp - Isso abrirá a interface do Inspector no navegador (geralmente em http://localhost:6274).
Observações
- O Inspector é sempre um cliente externo, não um plugin do seu servidor.
- Não tente acessar
/mcpdiretamente pelo navegador, pois ele faz GET e o endpoint espera POST. - O Inspector faz as requisições POST corretamente e mostra tudo em uma interface amigável.
- Se estiver rodando em um servidor remoto, certifique-se de liberar a porta 3000 no firewall.
Fixes e informações detalhadas
Para detalhes sobre problemas e correções aplicadas, consulte a pasta fixes/, especialmente o arquivo fixes/20250505-errorcode.md para entender o caso do ErrorCode e como foi solucionado.
Documentação oficial (alternativa)
Para mais detalhes, consulte a documentação oficial (em inglês, com opção de tradução automática pelo navegador):
Ou utilize a tradução automática do Google Chrome ou este link traduzido para acessar a documentação em português.
Fontes e Referências
- Build Your First MCP Server with TypeScript (Hackteam)
- Copilot Developer Camp
- Model Context Protocol TypeScript SDK
- Playwright MCP
- Introducing Model Context Protocol (MCP) in Copilot Studio: Simplified Integration with AI Apps and Agents (Microsoft Blog)
- my-first-mcp-server (Yusuke Wada)
About the Author
Lincoln Lopes (GitHub: lincolnlopes)
- Developer from Brazil
- Email: [email protected]
- Main skills: TypeScript, JavaScript, Node.js, .NET, Docker, React, SQL, Git
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.