Skip to main content
Glama
Turbo Docs MCP Server

Turbo Docs MCP Server

by pinzonjulian

Turbo Docs MCP Server

An MCP server to access up to date documentation for Turbo JS.

⚠️ This is Experimental Software

This MCP is in early development. It may contain bugs, have limited functionality, or undergo breaking changes without notice. Use at your own risk and expect potential instability.

Building the MCP Server

Prerequisites

  • Node.js: Minimum version 18.0.0 or higher

  • npm: Comes bundled with Node.js

Build Instructions

  1. Clone this repository and navigate to the project directory

  2. Install dependencies:

    npm install
  3. Build the project using the provided script:

    npm run build

This will compile the TypeScript source code and create the executable in the build/ directory.

Related MCP server: DocuMCP

Usage

With Claude Desktop

  1. First, build the MCP server following the instructions above

  2. Follow the instructions at https://modelcontextprotocol.io/quickstart/user to add a new MCP server.

  3. Add the following configuration:

{
  "mcpServers": {
    "Turbo-docs": {
      "command": "node",
      "args": ["/path/to/your/Turbo-docs-mcp-server/build/index.js"],
      "env": {}
    }
  }
}
  1. Replace /path/to/your/Turbo-docs-mcp-server with the actual path to this project

  2. Restart Claude Desktop

  3. The Turbo documentation tools should now be available in your Claude conversations

With VS Code

  1. Build the MCP server following the instructions above

  2. Follow the instructions at https://code.visualstudio.com/docs/copilot/chat/mcp-servers

  3. Using your preferred method based on the instructions above, configure the MCP server by pointing it to the built executable:

    {
     "Turbo-docs": {
         "type": "stdio",
         "command": "node",
         "args": [
             "path/to/your/Turbo-docs-mcp-server"
           ]
     }
    }
  4. Replace path/to/your/Turbo-docs-mcp-server with the path to the index.js file built in step 1.

  5. The Turbo documentation will be accessible through the MCP client interface

Troubleshooting

Claude

You may see the following errors when opening Claude after configuring the MCP:

MCP Turbo-docs: spawn node ENOENT (2)

Could not connect to MCP server Turbo-docs

MCP Turbo-docs: Server disconnected. For troubleshooting guidance [...]

This is because the path to the node executable can not be found. If that's the case, instead of "command": "node" use the complete path to the node. If you use mise it may be something like:

"command": "/Users/<YOUR USER NAME/.local/share/mise/installs/node/20.18.3/bin/node

Documentation Source

The Turbo documentation files included are copied from the official Turbo-site repository.

The next phase of exploration for this MCP could be to fetch the docs from the web to keep them up to date and store them locally for a set period of time.

All credit for the documentation content goes to the Turbo team and contributors.

Available Tools

This MCP server provides access to the complete Turbo documentation, organized into:

Handbook:

  • Introduction

  • Drive

  • Page Refreshes

  • Frames

  • Streams

  • Native

  • Building with Turbo

  • Installing Turbo

Reference:

  • Attributes

  • Drive

  • Events

  • Frames

  • Streams

Each documentation section is available as a separate tool that can be called to retrieve the relevant content.

Available Tools

13 tools
handbook-buildingC

Building Turbo applications - covers script handling, JavaScript bundling, caching strategies, installing behavior with Stimulus, making transformations idempotent, and persisting elements across page loads

Inputs: no named parameters.

handbook-driveB

Turbo Drive navigation guide - covers page visits, application/restoration visits, link handling, form submissions, progress indicators, caching, prefetching, and view transitions for fast page navigation

Inputs: no named parameters.

handbook-framesC

Turbo Frames for page decomposition - covers independent page segments, scoped navigation, eager/lazy loading, cache benefits, targeting navigation, frame promotion to visits, and custom rendering

Inputs: no named parameters.

handbook-installingB

Installing Turbo in your application - covers CDN installation, npm package setup, bundler integration, importing strategies, and Rails-specific installation with turbo-rails gem

Inputs: no named parameters.

handbook-introductionB

Introduction to Turbo - learn about HTML-over-the-wire approach, persistent processes, and how Turbo Drive, Frames, Streams, and Native work together to create fast web applications without heavy JavaScript frameworks

Inputs: no named parameters.

handbook-nativeB

Hotwire Native for mobile apps - overview of iOS and Android native app development using Turbo-enabled web views for hybrid applications with native navigation and web content

Inputs: no named parameters.

handbook-page-refreshesC

Page refresh techniques with morphing - learn about smooth page updates using DOM morphing with idiomorph, scroll preservation, excluding sections from morphing, and broadcasting refresh streams

Inputs: no named parameters.

handbook-streamsC

Turbo Streams for live updates - learn about the 9 stream actions (append, prepend, replace, update, remove, before, after, morph, refresh), WebSocket/SSE integration, and server-side template reuse

Inputs: no named parameters.

reference-attributesB

Complete reference for Turbo data attributes and meta tags - covers all data-turbo-* attributes for controlling Drive behavior, frame navigation, caching, and automatically added attributes like aria-busy

Inputs: no named parameters.

reference-driveB

Turbo Drive API reference - detailed documentation of Drive methods, configuration options, and programmatic control of navigation behavior

Inputs: no named parameters.

reference-eventsB

Turbo events reference - comprehensive list of all Turbo events fired during navigation, form submissions, frame updates, and stream processing for lifecycle management

Inputs: no named parameters.

reference-framesB

Turbo Frames API reference - detailed frame element attributes, JavaScript methods, lifecycle callbacks, and programmatic frame control

Inputs: no named parameters.

reference-streamsB

Turbo Streams API reference - complete documentation of stream actions, JavaScript methods, custom action creation, and programmatic stream handling

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no overlap. The 'handbook-' tools cover conceptual topics and tutorials, while the 'reference-' tools provide API documentation, making it impossible to confuse them. Each tool name directly indicates its specific scope within the Turbo framework.

    Naming Consistency5/5

    The naming follows a perfect and predictable pattern throughout. All tools use a consistent 'prefix-topic' format with kebab-case, where 'handbook-' indicates conceptual guides and 'reference-' indicates API documentation. This consistency makes the tool set highly readable and predictable.

    Tool Count5/5

    With 13 tools, the count is well-scoped and appropriate for the server's purpose of documenting Turbo. It covers all major aspects (Drive, Frames, Streams, Native, installation, attributes, events) without being overwhelming, and each tool earns its place by addressing a distinct area of the framework.

    Completeness5/5

    The tool set provides complete coverage of the Turbo documentation domain. It includes all core concepts (introduction, building, installing, Drive, Frames, Streams, Native, page refreshes) and comprehensive API references (attributes, Drive, events, Frames, Streams), leaving no gaps for agents to navigate the framework effectively.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that enables Claude to generate, search, and manage documentation for codebases using vector embeddings and semantic search, providing tools for creating user guides, technical documentation, code explanations, and architectural diagrams.
      6
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that makes project documentation instantly accessible in Claude Code through @ mentions, allowing Claude to understand your codebase's conventions and architecture.
      6
      MIT