MCP - Model Context Protocol TypeScript SDK

MCP - Model Context Protocol TypeScript SDK

A TypeScript wrapper library for the Model Context Protocol SDK that provides a simplified interface for creating MCP servers with tools, resources, and prompts without needing to work directly with the protocol.

Category
Visit Server

README

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

Instalação

Para instalar a biblioteca, execute:

npm install @codeplaydata/mcp

Detalhes 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 TypeScript
  • npm run dev - Executa o projeto em modo de desenvolvimento
  • npm run inspect - Executa o inspetor MCP
  • npm 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/>.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured