MCP-Typescribe

MCP-Typescribe

An MCP server for serving TypeScript API context to language models.

45
Stars
6
Forks
45
Watchers
0
Issues
MCP-Typescribe is an open-source implementation of the Model Context Protocol (MCP) focused on providing LLMs with contextual, real-time access to TypeScript API documentation. It parses TypeScript (and other) definitions using TypeDoc-generated JSON and serves this information via a queryable server that supports tools used by AI coding assistants. The solution enables AI agents to dynamically explore, search, and understand unknown APIs, accelerating onboarding and supporting agentic behaviors in code generation.

Key Features

Integration with TypeDoc-generated JSON documentation
Efficient querying of symbols and APIs
Dynamic serving of API context to LLMs and AI agents
Search by symbol name, kind, or return type
Detailed symbol and parameter information retrieval
Listing of class or interface members
Type hierarchy and inheritance exploration
Usage and implementation searching
JSDoc comment searching
Supports plug-and-play integration with AI coding assistants

Use Cases

Supplying LLMs and coding agents with real-time, contextual API documentation
Onboarding new or internal SDKs for developer teams and AI tools
Enhancing AI-assisted code generation for unfamiliar or proprietary TypeScript APIs
Allowing autonomous agents to plan and adapt to new API landscapes without retraining
Powering intelligent code suggestions in developer environments
Facilitating programmatic understanding of API relationships and dependencies
Supporting tools that need granular queries into API docs, such as Cursor or Cline
Accelerating understanding and usage of complex or evolving codebases
Providing context-rich answers to API usage or symbol queries
Enabling enterprise and proprietary API access for AI-enhanced development workflows

README

[!CAUTION] Public development is currently suspended as no active community formed. We are working on a follow-up project, specifically for the yFiles API. You can read more, here: yFiles MCP Server. yFiles developers can use the MCP to query API, development guides, source code snippets and recipes using those tools, instead. They work far better than the implementation in this repository.

npm version

MCP-Typescribe - an MCP Server providing LLMs API information

The Problem

Large Language Models (LLMs) have made incredible strides in code generation and developer productivity. However, they face a key limitation: they can only reliably use APIs and libraries they’ve seen during training. This creates a bottleneck for adopting new tools, SDKs, or internal APIs — LLMs simply don’t know how to use them effectively.

While tools can be given source code access (when interacting with APIs for which the sources are available) or access to documentation files (e.g. typescript type definition files), this doesn't scale well for large APIs. LLMs need a more efficient way to learn more about an API. Putting all the documentation into context for every request is inefficient, unfeasible, and leads to poor results.

As a result:

Larger new or internal APIs remain "invisible" to LLMs.

Developers must manually guide LLMs or provide example usage.

Innovation is slowed by the lag between an API’s release and its widespread understanding by AI tools.

The Idea

This project is an open-source implementation of the Model Context Protocol (MCP)—a protocol designed to provide LLMs with contextual, real-time access to information. In this case it's the API documentation, and particularly for now in this project TypeScript definitions.

Our goal is to:

Parse TypeScript (and other) definitions into a machine-readable format.

Serve this context dynamically to LLMs through tools like Claude, Cline, Cursor, or Windsurf and other custom interfaces.

Enable agentic behavior by letting LLMs query, plan, and adapt to unfamiliar APIs without retraining.

What This Enables

Plug-and-play API support for LLM-based coding assistants.

Faster onboarding for new or proprietary SDKs.

A step toward more autonomous, context-aware coding agents.

Project Overview

Image

This project provides a way for AI agents to efficiently explore and understand unknown TypeScript APIs. It loads TypeDoc-generated JSON documentation and exposes it through a set of query endpoints that allow agents to search for symbols, get detailed information about specific parts of the API, and understand relationships between different components.

Current Features

  • TypeDoc Integration: Loads and indexes TypeDoc JSON documentation for efficient querying
  • Comprehensive Query Capabilities: Provides a wide range of tools for exploring TypeScript APIs
  • MCP Protocol: Follows the Model Context Protocol for seamless integration with AI agents

Query Capabilities

The server provides the following tools for querying the API:

  • search_symbols: Find symbols by name with optional filtering by kind
  • get_symbol_details: Get detailed information about a specific symbol
  • list_members: List methods and properties of a class or interface
  • get_parameter_info: Get information about function parameters
  • find_implementations: Find implementations of interfaces or subclasses
  • search_by_return_type: Find functions returning a specific type
  • search_by_description: Search in JSDoc comments
  • get_type_hierarchy: Show inheritance relationships
  • find_usages: Find where a type/function is used

Getting Started

Prerequisites

  • Node.js
  • npm

Installation

  1. Clone the repository
  2. Install dependencies:
    bash
    npm install
    

Usage

  1. Generate TypeDoc JSON for your TypeScript API:

    bash
    npx typedoc --json docs/api.json --entryPointStrategy expand path/to/your/typescript/files
    

    If you (only) have an existing.d.ts file, you can create an api json file like so:

    Create a separate tsconfig.docs.json:

    json
    {
      "extends": "./tsconfig.json",
      "files": ["existing.d.ts"],
      "typedocOptions": {
        "entryPoints": ["existing.d.ts"],
        "json": "docs/api.json",
        "pretty": false
      }
    }
    

    Then do

    bash
    npx typedoc --tsconfig tsconfig.docs.json
    
  2. Build the project:

    bash
    npm run build
    
  3. Explore the MCP server:

    bash
    npx @modelcontextprotocol/inspector node ./dist/mcp-server/cli.js run-server docs/api.json
    
  4. Connect an AI agent to the server to query the API

    E.g. with cline in VSCode, specify the following MCP server in cline_mcp_settings.json:

    json
    {
      "mcpServers": {
        "typescribe": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-typescribe@latest",
            "run-server",
            "<PATH_TO_API_DOT_JSON>"
          ],
          "env": {}
        }
      }
    }
    
  5. Enable the server and likely auto-approve the various tools. Tell the agent to use the "typescribe" tool to learn about your API.

Project Structure

  • src/sample-api/: A sample TypeScript API for testing - it uses a weird German-like dialect for the API names to test that the LLM does not hallucinate the API
  • src/mcp-server/: The MCP server implementation
    • utils/: Utility functions
    • schemas/: JSON schemas for the MCP tools
    • core/: Core functionality
    • server.ts: The MCP server implementation
    • index.ts: Entry point for the library exports
    • cli.ts: the entry point for the CLI/binary
  • tests/: Tests for the API functionality

Development

Running Tests

bash
npm test

Building

bash
npm run build

License

MIT

Copyright 2025 yWorks GmbH - https://www.yworks.com

Star History

Star History Chart

Repository Owner

yWorks
yWorks

Organization

Repository Details

Language TypeScript
Default Branch master
Size 808 KB
Contributors 3
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
98.38%
JavaScript
1.62%

Tags

Topics

api llm mcp-server typedoc typescript

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Weblate MCP Server

    Weblate MCP Server

    Seamlessly connect AI assistants to Weblate for translation management via the Model Context Protocol.

    Weblate MCP Server enables AI assistants and clients to directly manage Weblate translation projects through the Model Context Protocol (MCP). It integrates with the Weblate REST API, allowing natural language interaction for project and translation management. The tool offers multiple transport options including HTTP, SSE, and STDIO, and is optimized for large language model workflows. Full support for project, component, and translation operations is provided, with a focus on type safety and flexible environment configuration.

    • 9
    • MCP
    • mmntm/weblate-mcp
  • Godot MCP

    Godot MCP

    A Model Context Protocol (MCP) server implementation using Godot and Node.js.

    Godot MCP implements the Model Context Protocol (MCP) as a server, leveraging the Godot game engine along with Node.js and TypeScript technologies. Designed for seamless integration and efficient context management, it aims to facilitate standardized communication between AI models and applications. This project offers a ready-to-use MCP server for developers utilizing Godot and modern JavaScript stacks.

    • 1,071
    • MCP
    • Coding-Solo/godot-mcp
  • @dealx/mcp-server

    @dealx/mcp-server

    MCP server enabling LLMs to search and interact with the DealX platform.

    Implements the Model Context Protocol, providing a standardized interface for large language models to interact with the DealX platform. Supports searching for ads through structured prompts and is designed for easy integration with tools like Claude and VS Code extensions. Flexible configuration options are available for environment variables, logging, and deployment. Extensible architecture supports future feature additions beyond ad search.

    • 0
    • MCP
    • DealExpress/mcp-server
  • LlamaCloud MCP Server

    LlamaCloud MCP Server

    Connect multiple LlamaCloud indexes as tools for your MCP client.

    LlamaCloud MCP Server is a TypeScript-based implementation of a Model Context Protocol server that allows users to connect multiple managed indexes from LlamaCloud as separate tools in MCP-compatible clients. Each tool is defined via command-line parameters, enabling flexible and dynamic access to different document indexes. The server automatically generates tool interfaces, each capable of querying its respective LlamaCloud index, with customizable parameters such as index name, description, and result limits. Designed for seamless integration, it works with clients like Claude Desktop, Windsurf, and Cursor.

    • 82
    • MCP
    • run-llama/mcp-server-llamacloud
  • Slite MCP Server

    Slite MCP Server

    Bridge Slite notes with AI model context using the MCP standard.

    Slite MCP Server implements the Model Context Protocol to interface with Slite's API, enabling seamless search, retrieval, and hierarchical browsing of workspace notes. It exposes standardized tools for searching notes, retrieving content by ID, and navigating note structures, making Slite content programmatically accessible to contextual AI pipelines. Built in Node.js and TypeScript, it is configurable and supports authentication via API key.

    • 0
    • MCP
    • fajarmf/slite-mcp
  • Taskade MCP

    Taskade MCP

    Tools and server for Model Context Protocol workflows and agent integration

    Taskade MCP provides an official server and tools to implement and interact with the Model Context Protocol (MCP), enabling seamless connectivity between Taskade’s API and MCP-compatible clients such as Claude or Cursor. It includes utilities for generating MCP tools from any OpenAPI schema and supports the deployment of autonomous agents, workflow automation, and real-time collaboration. The platform promotes extensibility by supporting integration via API, OpenAPI, and MCP, making it easier to build and connect agentic systems.

    • 90
    • MCP
    • taskade/mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results