mcp-typescribe
An MCP server implementation enabling LLMs to work with new APIs and frameworks
claude mcp add --transport stdio yworks-mcp-typescribe npx -y mcp-typescribe@latest run-server <PATH_TO_API_DOT_JSON>
How to use
MCP-Typescribe is an MCP server that loads TypeScript API documentation (via TypeDoc JSON) and exposes rich querying capabilities to AI agents. It provides tools to search for symbols, inspect details, navigate type hierarchies, and discover usages and parameter information, enabling LLMs to understand and reason about a TypeScript API in real time. Typical workflows involve running the server, feeding it a TypeDoc JSON file for your API, and then querying it through the MCP interface to learn about symbols, members, and relationships within the API.
To use the server, start it with the provided run-server entry, point it at your API JSON export, and connect your agent (e.g., via a tool like cline or another MCP client) to issue commands such as search_symbols, get_symbol_details, list_members, find_usages, and get_type_hierarchy. This setup lets AI agents reason about API surface areas, functions, types, and their interconnections without requiring hard-coded knowledge of the API.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Git (optional, for cloning the repo)
Installation steps:
-
Install dependencies from the project root: npm install
-
Build the project (if you need a built server for distribution): npm run build
-
Run the MCP server locally (example using the README’s approach): npx @modelcontextprotocol/inspector node ./dist/mcp-server/cli.js run-server docs/api.json
-
Generate or obtain your API JSON (TypeDoc output) and point the server at it when starting or via your MCP client configuration.
-
Connect an AI agent or tool (e.g., cline) to the server using the provided mcpServers configuration and start querying the API.
Additional notes
Tips and notes:
- The server expects a TypeDoc JSON file (docs/api.json in examples) describing your TypeScript API. If you only have a .d.ts, you can generate a TypeDoc JSON with a small docs.json configuration as shown in the README.
- Use the example MCP client settings to integrate with tools like cline: the typescribe server entry is named 'typescribe' in the mcp_servers config.
- Ensure you have compatible Node.js/npm versions and that the mcp-typescribe package version is suitable for your setup (latest is referenced in the command).
- If you encounter permission or path issues, verify that the PATH_TO_API_DOT_JSON points to a valid JSON file and that the server process has read access.
- You can customize environment variables in the mcp_config if you need to adjust logging, authentication, or other runtime options.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
hackmd
A Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants.
mcp -chart-minio
mcp-server-chart私有化部署方案
kanban
MCP Kanban is a specialized middleware designed to facilitate interaction between Large Language Models (LLMs) and Planka, a Kanban board application. It serves as an intermediary layer that provides LLMs with a simplified and enhanced API to interact with Planka's task management system.
mcp-konnect
A Model Context Protocol (MCP) server for interacting with Kong Konnect APIs, allowing AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.
cco
Real-time audit and approval system for Claude Code tool calls.