MCP-Typescribe
An MCP server for serving TypeScript API context to language models.
Key Features
Use Cases
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.
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
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 kindget_symbol_details: Get detailed information about a specific symbollist_members: List methods and properties of a class or interfaceget_parameter_info: Get information about function parametersfind_implementations: Find implementations of interfaces or subclassessearch_by_return_type: Find functions returning a specific typesearch_by_description: Search in JSDoc commentsget_type_hierarchy: Show inheritance relationshipsfind_usages: Find where a type/function is used
Getting Started
Prerequisites
- Node.js
- npm
Installation
- Clone the repository
- Install dependencies:
bash
npm install
Usage
-
Generate TypeDoc JSON for your TypeScript API:
bashnpx typedoc --json docs/api.json --entryPointStrategy expand path/to/your/typescript/filesIf you (only) have an existing
.d.tsfile, 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
bashnpx typedoc --tsconfig tsconfig.docs.json -
Build the project:
bashnpm run build -
Explore the MCP server:
bashnpx @modelcontextprotocol/inspector node ./dist/mcp-server/cli.js run-server docs/api.json -
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": {} } } } -
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 APIsrc/mcp-server/: The MCP server implementationutils/: Utility functionsschemas/: JSON schemas for the MCP toolscore/: Core functionalityserver.ts: The MCP server implementationindex.ts: Entry point for the library exportscli.ts: the entry point for the CLI/binary
tests/: Tests for the API functionality
Development
Running Tests
npm test
Building
npm run build
License
MIT
Copyright 2025 yWorks GmbH - https://www.yworks.com
Star History
Repository Owner
Organization
Repository Details
Programming Languages
Tags
Topics
Join Our Newsletter
Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.
Related MCPs
Discover similar Model Context Protocol servers
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
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
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
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
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
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?