About MCP Server em TypeScript
A TypeScript implementation of an MCP-compatible server for developers who need a small local or containerized example. It lists available models and provides a sample completion endpoint.
Key features
- 01Lists available models
- 02Provides a sample completion
- 03Runs in development or production
- 04Supports Docker deployment
Use cases
- 01Testing MCP-compatible endpoints locally
- 02Running the example server in Docker
MCP support
Implements an MCP-compatible server with `GET /v1/models` and `POST /v1/completions` endpoints.
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 em TypeScript
Este projeto implementa um servidor compatível com o Model Context Protocol (MCP).
Rodando localmente
- Instale as dependências:
npm install - Rode em modo desenvolvimento:
npm run dev - Para build e execução em produção:
npm run build npm start
Usando Docker
- Construa a imagem:
docker build -t mcp-server . - Rode o container:
docker run -p 3000:3000 mcp-server
O servidor estará disponível em http://localhost:3000.
Endpoints MCP
GET /v1/models: Lista os modelos disponíveisPOST /v1/completions: Gera uma resposta de exemplo
Para mais informações sobre MCP: Model Context Protocol
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.