Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Bridges Claude Desktop with a local RAG-powered code agent API, enabling context-aware codebase queries and conversation continuity.

README.md

🚀 Noor MCP Code Assistant

MCP (Model Context Protocol) Server that bridges Claude Desktop with your RAG-powered Code Agent API.

![Author](https://github.com/nooruddin-dev) ![LinkedIn](https://www.linkedin.com/in/nooruddin-dev/) ![YouTube](https://youtube.com/@noorcodelogics) ![Python](https://python.org)

---

📋 Overview

This project creates an MCP server that allows Claude Desktop to communicate with your existing RAG Code Agent API running at localhost:8900. When you ask code-related questions in Claude Desktop, it can use this tool to fetch context-aware answers from your codebase.

🎯 Features

  • ✅ Seamless integration with Claude Desktop
  • ✅ Connects to existing RAG API (/api/chat/rag)
  • ✅ Session management for conversation continuity
  • ✅ Comprehensive error handling
  • ✅ Configurable via environment variables
  • ✅ Ready for future agent extensions (SQL, React, Java)

---

🏗️ Project Structure

noor_mcp_code_assistant_parent/
├── env_container/              # Virtual environment
│   ├── bin/
│   ├── lib/
│   └── ...
└── noor_mcp_code_assistant/    # Project source
    ├── mcp_server.py           # Main MCP server
    ├── config.py               # Configuration management
    ├── requirements.txt        # Dependencies
    ├── .env.example            # Environment template
    ├── .env                    # Your configuration (git-ignored)
    └── README.md               # This file

---

🚀 Quick Start

1️⃣ Create Virtual Environment

Navigate to the parent folder and create the environment: ``bash cd noor_mcp_code_assistant_parent python3.11 -m venv env_container ``

Activate the environment: ```bash

Linux/WSL/macOS

source env_container/bin/activate

Windows PowerShell

.\env_container\Scripts\Activate ```

---

2️⃣ Install Requirements

cd noor_mcp_code_assistant
pip install -r requirements.txt

---

3️⃣ Configure Environment Variables

Copy the example file and customize: ``bash cp .env.example .env ``

Edit .env with your settings: ```bash

Required

RAG_API_BASE_URL=http://localhost:8900 RAG_CHAT_ENDPOINT=/api/chat/rag

Optional

DEFAULT_SESSION_ID=claude-desktop-session REQUEST_TIMEOUT=120 ```

---

4️⃣ Configure Claude Desktop

Locate your Claude Desktop configuration file:

Windows: `` %APPDATA%\Claude\claude_desktop_config.json ` (Usually: C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json`)

Add the MCP server configuration: ``json { "mcpServers": { "noor-code-assistant": { "command": "wsl", "args": [ "-d", "Ubuntu-20.04", "--", "/home/<your-username>/noor_mcp_code_assistant_parent/env_container/bin/python", "/home/<your-username>/noor_mcp_code_assistant_parent/noor_mcp_code_assistant/mcp_server.py" ], "env": { "PYTHONUNBUFFERED": "1" } } } } ``

⚠️ Important: Replace <your-username> with your actual WSL username and adjust paths accordingly.

🔍 Find Your WSL Distribution Name

wsl --list --verbose

Use the exact name shown (e.g., Ubuntu-20.04, Ubuntu, etc.)

---

5️⃣ Verify Setup

Step 1: Ensure your RAG API is running: ```bash

In WSL terminal

cd /path/to/your/rag-project source env_container/bin/activate uvicorn main:app --reload --port 8900 ```

Step 2: Test the RAG API: ``bash curl -X POST http://localhost:8900/api/chat/rag \ -H "Content-Type: application/json" \ -d '{"session_id": "test", "message": "hello"}' ``

Step 3: Restart Claude Desktop completely (check system tray)

Step 4: The noor-code-assistant tool should now appear in Claude Desktop!

---

💬 Usage Examples

Once configured, you can ask Claude Desktop:

"Use the code assistant to create a C# function that gets employee requests by employee ID"

"Ask the code assistant how pagination is implemented in my project"

"Use code_assistant to show me the DTO structure for Employee entity"

---

🔮 Adding Future Agents

When you're ready to add more agents (SQL, React, Java):

Step 1: Add endpoints to your RAG API

@app.post("/api/sql/agent")
async def sql_agent(request: SQLAgentRequest):
    # Your SQL agent logic
    pass

Step 2: Update .env

SQL_AGENT_ENDPOINT=/api/sql/agent

Step 3: Uncomment tool definitions in mcp_server.py

Look for the commented sql_agent tool and handler, then uncomment them.

Step 4: Restart Claude Desktop

---

🐛 Troubleshooting

| Issue | Solution | |-------|----------| | MCP server not appearing | Check Claude Desktop logs at %APPDATA%\Claude\logs\ | | Connection refused | Ensure RAG API is running on localhost:8900 | | WSL path issues | Use full Linux paths (e.g., /home/user/...) | | Python not found | Use full path to Python in venv | | Timeout errors | Increase REQUEST_TIMEOUT in .env |

📋 View Logs

Claude Desktop Logs: `` C:\Users\<YourUsername>\AppData\Roaming\Claude\logs\ ``

Test MCP Server Standalone: ``bash cd noor_mcp_code_assistant source ../env_container/bin/activate python mcp_server.py ``

---

📊 Configuration Reference

| Variable | Default | Description | |----------|---------|-------------| | RAG_API_BASE_URL | http://localhost:8900 | Base URL of your RAG API | | RAG_CHAT_ENDPOINT | /api/chat/rag | Chat endpoint path | | DEFAULT_SESSION_ID | claude-desktop-session | Default session for continuity | | REQUEST_TIMEOUT | 120 | API timeout in seconds |

---

🔐 Security Notes

  • This MCP server only makes outbound HTTP requests to your local RAG API
  • No sensitive data is stored or logged
  • Session IDs are used only for conversation context
  • All communication happens over localhost

---

📄 License

MIT License - Feel free to use and modify!

---

👨‍💻 Author

Noor Uddin

---

🌟 Support

If you find this helpful, please:

  • ⭐ Star the repository
  • 📺 Subscribe to Noor Codelogics
  • 🔗 Share with fellow developers

Happy Coding! 🚀

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.