Fuel Network & Sway Language MCP Server

by FuelLabs

7 177 downloads Not rated yet
GitHub

About

A Fuel MCP server which provides support for Fuel docs and various coding IDEs such as Cursor.

Explore

- Local semantic search of docs.fuel.network content
- No Docker dependency - runs with just Bun
- Fast file-based vector storage with Vectra
- Enhanced result filtering and formatting
- Hybrid search with keyword fallback

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Fuel Network & Sway Language MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Bun: Install from bun.sh

``bash

bun install

| Variable | Default | Description |
|----------|---------|-------------|
|
VECTRA_INDEX_PATH | ./vectra_index | Vector database location |
|
EMBEDDING_MODEL | Xenova/all-MiniLM-L6-v2 | Hugging Face model |
|
CHUNK_SIZE | 2000 | Target tokens per chunk |
|
NUM_RESULTS | 5 | Search results count |
|
LOG_LEVEL | | Set to debug` for verbose output |

query

(string): Search query

nResults

(number, optional): Number of results (default: 5)

includeScore

(boolean, optional): Include relevance scores

searchFuelDocs
- query (string): Search query
- nResults (number, optional): Number of results (default: 5)
- includeScore (boolean, optional): Include relevance scores

provideStdContext
- Returns Sway standard library paths and types

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "fuel network & sway language mcp server": {
            "fuel-mcp-server": {
                "command": "bun",
                "args": [
                    "run",
                    "src/indexer.ts",
                    "./docs"
                ]
            }
        }
    }
}

McpServers

{
    "fuel-mcp-server": {
        "command": "bun",
        "args": [
            "run",
            "src/indexer.ts",
            "./docs"
        ]
    }
}

This project provides a Model Context Protocol (MCP) server for the Fuel Network and Sway Language ecosystem. It allows IDEs (like Cursor) to search and interact with Fuel documentation directly within the development environment.

The server indexes Fuel and Sway documentation into a local Vectra vector database using open-source embeddings (via Transformers.js) for powerful semantic search capabilities.

Features

- Local semantic search of docs.fuel.network content - No Docker dependency - runs with just Bun - Fast file-based vector storage with Vectra - Enhanced result filtering and formatting - Hybrid search with keyword fallback

Quick Install

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.