MCP - Model Context Protocol TypeScript SDK
Allows extending Express Request and Response types within the MCP Controller, enabling integration with Express web server applications.
Provides integration with Node.js runtime for hosting and executing the MCP server.
Leverages TypeScript for type-safe development when creating MCP servers, tools, resources, and prompts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP - Model Context Protocol TypeScript SDKcreate a new MCP server with a tool to fetch user data"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP - Model Context Protocol TypeScript SDK
Uma biblioteca que encapsula todo o comportamento do Model Context Protocol SDK em TypeScript, fornecendo uma interface simplificada e robusta para integração com o protocolo MCP.
Pré-requisitos
Node.js 18.0 ou superior
NPM (Node Package Manager)
TypeScript 5.8.3 ou superior
Related MCP server: MCP Framework
Instalação
Para instalar a biblioteca, execute:
npm install @codeplaydata/mcpDetalhes Técnicos
Essa lib é uma wraper da SDK do Typescript para o Model Context Protocol, com ela é possível, criar um servidor com pela Factory adicionando tools, resources e prompts. Também é possível adicionar tools que tenham acesso ao servidor para modificar o seu estado. No geral, não existe necessidade de trabalhar com o protocolo diretamente.
No arquivo main.ts existe um modo de uso, nela é possível notar que caso utilize express é possível extender
o tipo da Resquest e Response do Controller.
Por enquanto, a implementação do transporte é a recomendada pela última release o StreamableHttpTransport.
A autenticação ficar por conta do servidor Http de escolha do usuário.
Por enquanto, o servidor não implementa o COMPLETION.
Scripts disponíveis:
npm run build- Compila o projeto TypeScriptnpm run dev- Executa o projeto em modo de desenvolvimentonpm run inspect- Executa o inspetor MCPnpm run publish- Publica o pacote no NPM
Dependências
A biblioteca utiliza uma única dependências:
@modelcontextprotocol/sdk: ^1.12.1 - SDK base do Model Context Protocol
Licença
The MCP TypeScript wrapper.
Copyright (C) 2025 Pedro Paulo Teixeira dos Santos
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.This server cannot be deployed
Maintenance
Related MCP Connectors
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.1,632 npm14MIT
- FlicenseNot gradedqualityDmaintenanceA TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.3 npm-
- AlicenseDqualityCmaintenanceA simple TypeScript library for creating Model Context Protocol (MCP) servers with features like type safety, parameter validation, and a minimal code API.16 npm3MIT
- AlicenseNot gradedqualityDmaintenanceSimplifies creating MCP servers in TypeScript with an Express-like API and experimental decorators, enabling quick definition of tools, resources, and prompts.13 npm196MIT