The MCP-RAG TypeScript server provides three main tools:
- ML FAQ Retrieval - Search the vector database for ML concepts
- Add Document to FAQ - Expand your knowledge base with new information
- Web Search via Scrapeless - Find information from the web
These tools can be used individually or combined in powerful workflows for knowledge management and retrieval.
Note: The tool names (like
machine-learning-faq-retrieval
) are configurable and don't necessarily match your Qdrant collection names. By default, this tool queries the "ml_faq_collection" in Qdrant, but you can customize both the tool name and the target collection in your configuration.
- Find information about specific ML concepts
- Search for techniques to solve ML problems
- Explore methods in particular ML domains
- Get quick answers about known ML topics
Use machine-learning-faq-retrieval to find information about overfitting
Can you search the ML FAQ for information about neural networks? Use machine-learning-faq-retrieval
Use machine-learning-faq-retrieval to find best practices for feature selection
- Enrich your knowledge base with new ML concepts
- Save useful information for future reference
- Create a personalized knowledge repository
- Document specific techniques or methods
Use add-document-to-faq to add this information:
Text: "Random forests are ensemble learning methods that construct multiple decision trees during training and output the class that is the mode of the classes or mean prediction of the individual trees."
Category: "Ensemble Methods"
Source: "Introduction to ML"
Tags: ["random forests", "ensemble learning", "decision trees"]
Add this to the ML FAQ using add-document-to-faq:
Text: "Transfer learning is a machine learning technique where knowledge gained during training in one type of problem is used to improve generalization in another type of problem."
Category: "Deep Learning"
Source: "Advanced ML Course"
Tags: ["transfer learning", "pre-trained models", "fine-tuning"]
- Search for recent information not in your ML database
- Explore topics outside the ML domain
- Get up-to-date data on emerging technologies
- Find resources, tutorials, or articles on a topic
Use scrapeless-web-search to find recent advancements in quantum machine learning
I need information about the latest TensorFlow release. Use scrapeless-web-search
Use scrapeless-web-search with country=fr and language=fr to find French resources on deep learning
- Manually add documents when the standard tool isn't available
- Run complex queries on the database
- Create or modify collections
- Advanced manipulation of embeddings or data
Use the repl tool to create a new collection in Qdrant called "deep_learning_concepts"
First, use scrapeless-web-search to find information about "capsule networks". Then, use add-document-to-faq to add the most important findings to our ML knowledge base.
First, use machine-learning-faq-retrieval to check if we already have information about "self-supervised learning". If not, I'll provide content to add to our knowledge base.
I want to build a comprehensive knowledge base about reinforcement learning. Let's first use scrapeless-web-search to find key concepts, then systematically add each concept to our ML FAQ using add-document-to-faq.
Let's compare what we know internally versus what's available online. Use machine-learning-faq-retrieval for "graph neural networks", then use scrapeless-web-search for the same query, and identify what we should add to our knowledge base.
Let's implement a routine to keep our ML FAQ current. Use scrapeless-web-search for "latest machine learning techniques 2025", then use add-document-to-faq to add any new techniques we don't already have in our database.
I need a comprehensive answer about hyperparameter tuning. First use machine-learning-faq-retrieval to check our knowledge base, then augment with scrapeless-web-search for the latest methods.
Use machine-learning-faq-retrieval with several key ML terms like "neural networks", "reinforcement learning", and "clustering" to test the coverage of our knowledge base.
Let's improve our ML FAQ by adding information about XGBoost. First, use scrapeless-web-search to gather information, then add a comprehensive document using add-document-to-faq.
First, let's search for our current information about "transformers" using machine-learning-faq-retrieval, then use scrapeless-web-search to find the latest developments, and finally update our knowledge base using add-document-to-faq.
If you want to work with multiple Qdrant collections, you can define additional MCP tools in your server.ts
file:
// Example of adding a new tool for a different collection
server.tool(
"deep-learning-retrieval", // New tool name
"Retrieve information from the deep learning knowledge base.",
{
query: z.string().describe("The search query")
},
async (params) => {
// Create a Qdrant client configured for a different collection
const dlQdrantClient = new QdrantClient({
...QDRANT_CONFIG,
collection: "deep_learning_collection" // Different collection name
});
const result = await dlQdrantClient.searchSimilar({ query: params.query });
return {
content: [{
type: "text",
text: JSON.stringify(result, null, 2)
}]
};
}
);
This way, you can have multiple specialized knowledge bases in your Qdrant database.
- For the
add-document-to-faq
tool, always explicitly mention the tool name - For
scrapeless-web-search
, ensure your API key is correctly configured - If using REPL as an alternative, adapt the code to your specific needs
- For maximum efficiency, combine different tools in a logical sequence
- Always verify the information before adding it to your knowledge base
- Tool names can be customized in your code and don't need to match your Qdrant collection names
These use cases will help you fully leverage your MCP-RAG server capabilities and progressively build a rich and useful knowledge base.