rust-docs-mcp-server

🦀 Prevents outdated Rust code suggestions from AI assistants. This MCP server fetches current crate docs, uses embeddings/LLMs, and provides accurate context via a tool call.

GitHub Stars

182

User Rating

Not Rated

Favorites

0

Views

40

Forks

27

Issues

14

Installation
Difficulty
Intermediate
Estimated Time
10-20 minutes

Installation

Installation

Prerequisites

OpenAI API Key: Required for generating embeddings and summarizing answers. The server expects this key to be available in the OPENAI_API_KEY environment variable.

Installation Steps

1. Clone Repository

bash
git clone https://github.com/Govcraft/rust-docs-mcp-server.git
cd rust-docs-mcp-server

2. Install Dependencies

bash
cargo build --release

3. Start Server

bash
./target/release/rust-docs-mcp-server

Troubleshooting

Common Issues

Issue: Server won't start Solution: Ensure the OpenAI API key is correctly set.

Additional Resources