Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fuel Network & Sway Language MCP ServerHow do I handle native assets in a Sway contract?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fuel Network & Sway Language MCP Server
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
Usage
STDIO Transport (Default)
HTTP Transport
CLI Options
Claude/Cursor Integration
Add to your MCP config file:
Project Structure
Prerequisites
Bun: Install from bun.sh
Usage
1. Index Documents
Place markdown files in ./docs or specify a different directory:
2. Search Documents
3. Run MCP Server
4. Run Tests
Environment Variables
Variable | Default | Description |
|
| Vector database location |
|
| Hugging Face model |
|
| Target tokens per chunk |
|
| Search results count |
| Set to |
Implementation Details
Chunking: Preserves code blocks, splits by paragraphs with context awareness
Indexing: Generates embeddings with enhanced metadata for better search
Querying: Semantic search with quality filtering and keyword fallback
MCP Server: Exposes search as tool via stdio communication
Storage: File-based Vectra index (no external database required)
API
MCP Tools
searchFuelDocs
query(string): Search querynResults(number, optional): Number of results (default: 5)includeScore(boolean, optional): Include relevance scores
provideStdContext
Returns Sway standard library paths and types