npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

typesafe-api-call-mcp

v1.0.0

Published

MCP server for typesafe-api-call library

Readme

Typesafe API Call MCP Server

This is a Model Context Protocol (MCP) server for the typesafe-api-call library. It provides a robust integration for LLMs to understand and generate code using the library.

Architecture

The server is built with a modular architecture using the official @modelcontextprotocol/sdk:

  • Resources: Read-only access to docs, examples, and type definitions.
  • Tools: Active search and retrieval capabilities.
  • Prompts: Templates for code generation and error explanation.

Features

Resources (Data)

| URI | Description | MIME Type | | --------------------------------------- | --------------------------------------------------- | ------------------ | | typesafe-api-call://docs/readme | Complete README.md documentation | text/markdown | | typesafe-api-call://examples/main | Full usage examples source code | text/typescript | | typesafe-api-call://meta/package_json | Package version and dependencies | application/json | | typesafe-api-call://types/definitions | Aggregated core type definitions (APIRequest, etc.) | text/typescript |

Tools (Actions)

| Name | Description | Arguments | | ---------------------- | ------------------------------------------------------ | ----------------- | | list_doc_sections | List all available section titles in the documentation | (none) | | get_doc_section | Retrieve a specific documentation section | section: string | | search_documentation | Fuzzy search the docs for keywords | query: string |

Prompts (Templates)

| Name | Description | Arguments | | ------------------- | ------------------------------ | ------------------------------------------ | | generate_api_call | Scaffold an API call function | url, method, responseType, hasBody | | create_decoder | Scaffold a response decoder | typeName, properties | | explain_error | Explain a specific error class | errorClass |

Installation

Via npx (Recommended)

The easiest way to use this MCP server - no installation required:

npx typesafe-api-call-mcp

Via npm Global Install

Install globally to use anywhere:

npm install -g typesafe-api-call-mcp
typesafe-api-call-mcp

For Local Development

  1. Clone the repository:
    git clone https://github.com/sinha-sahil/typesafe-api-call.git
  2. Navigate to the MCP directory:
    cd typesafe-api-call/mcp
  3. Install dependencies:
    npm install
  4. Build the server:
    npm run build

Usage with Claude for Desktop

Add one of the following configurations to your claude_desktop_config.json:

Using npx (Recommended)

{
  "mcpServers": {
    "typesafe-api-call": {
      "command": "npx",
      "args": ["typesafe-api-call-mcp"]
    }
  }
}

Using Global Install

{
  "mcpServers": {
    "typesafe-api-call": {
      "command": "typesafe-api-call-mcp"
    }
  }
}

Using Local Build

{
  "mcpServers": {
    "typesafe-api-call": {
      "command": "node",
      "args": ["/absolute/path/to/typesafe-api-call/mcp/dist/index.js"]
    }
  }
}

License

ISC