NPM Types MCP Server logo

NPM Types MCP Server

by JackVCurtis

An MCP server for providing TypeScript type definitions from NPM packages as MCP Resources. This server allows AI assistants to fetch and use TypeScript type definitions from NPM packages.

View on GitHub

Last updated: N/A

What is NPM Types MCP Server?

This server implements the Model Context Protocol (MCP) to provide TypeScript type definitions from NPM packages. It enables AI assistants to fetch type definitions for any NPM package, access specific versions, and use these types for better code assistance.

How to use NPM Types MCP Server?

To use this server, clone the repository, install dependencies using yarn, and start the server using yarn start. Configure the server in Augment by adding a new MCP server with the specified name and command, ensuring to replace the placeholders with the correct paths to your Node.js executable and the repository.

Key features of NPM Types MCP Server

  • Fetches type definitions for any NPM package

  • Accesses the latest or specific versions of package types

  • Provides TypeScript type definitions as MCP Resources

  • Implements the Model Context Protocol

Use cases of NPM Types MCP Server

  • Improving code completion in AI assistants

  • Providing accurate type information for NPM packages

  • Enabling AI to understand and use NPM package APIs

  • Facilitating code generation with correct types

FAQ from NPM Types MCP Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for sharing information between different tools and services.

What Node.js version is required?

Node.js version 23.6.0 or higher is required.

What yarn version is required?

yarn version 1.22.22 or higher is required.

How do I find the absolute path to my Node.js executable?

You can use the command which node in your terminal to find the absolute path.

What is the npm-types tool?

The npm-types tool fetches the type definitions for an NPM package, given its name and version.