There's a new way to build production-grade MCP servers.
- It takes less than a minute.
- You don't have to write any code.
- You can integrate from 100k+ tools.
Here's a step-by-step breakdown (100% local):
To build MCP servers from scratch with custom tools, one has to:
- read the API docs
- implement MCP tools
- test them, and much more
Today, let's learn how to simplify this and build production-grade MCP servers using Postman's MCP Generator (free to use).
Let's dive in!
For context...
Postman's MCP Generator lets us build an MCP server with tools from its public API Network (with 100k+ APIs).
Steps:
- Select all the APIs for your MCP server.
- Export the code for the MCP server.
- Integrate it with any MCP client.
Check this👇
To begin, select the tools that you want to add to your MCP server. For simplicity, we select Hacker News and pick all the tools.
Once done, we click on Generate.
This gives us a download link with the code for the MCP server.
Check this 👇
After unzipping the file, we can see the entire repository, including:
- A README with instructions
- A .env file to specify API keys (if any)
- The server implementation, and more.
Check this 👇
As instructed in the README file, we run `npm install` command.
Next, to integrate the MCP server with Claude Desktop, go to Settings → Developer → Edit Config and add the config.
Note: You can run the `which node` command to print the path to node.
Check this 👇
Once the server is configured, Claude Desktop will show the tools we integrated while building the MCP server in Postman's MCP Generator.
For Hacker News, we have:
- get_story
- fetch_top_stories
- fetch_best_stories
- fetch_new_stories
Check this👇
Finally, we interact with the MCP server we just built.
Check this demo 👇
You can find the MCP Generator tool here: bit.ly/4oV7uUw
To recap, there are the steps:
- Open Postman's MCP generator.
- Select the APIs from Postman's API Network.
- All these APIs will be available as tools in your MCP server.
- Download the code provided by Postman.
- Specify API keys if needed in the .env file.
- Prepare your MCP config file JSON and add it to Claude/Cursor.
Done!
Thanks to @getpostman for working with me on this thread!
That's a wrap!
If you found it insightful, reshare it with your network.
Find me → @_avichawla
Every day, I share tutorials and insights on DS, ML, LLMs, and RAGs.
Your interviewer asks: "Why is Kernel Trick called a Trick?"
Here's how to answer (with simple maths):
Many ML algorithms use kernels for robust modeling, like SVM and KernelPCA.
If we have two n-dimensional vectors, a kernel function lets us compute their dot product in m-dimensional space (m>>n) without explicitly projecting the vectors.
Let's understand more with maths!
Let’s assume the following polynomial kernel function:
Also, for simplicity, let’s say both X and Y are two-dimensional vectors:
- reduces hallucinations by 40%
- improves answer relevancy by 50%
Let's understand how to use it in RAG systems (with code):
Most RAG apps fail due to retrieval. Today, we'll build a RAG system that self-corrects inaccurate retrievals using:
- @firecrawl_dev for scraping
- @milvusio as vectorDB
- @beam_cloud for deployment
- @Cometml Opik for observability
- @Llama_Index for orchestration
Let's go!
Here's an overview of what the app does:
- First search the docs with user query
- Evaluate if the retrieved context is relevant using LLM
- Only keep the relevant context
- Do a web search if needed
- Aggregate the context & generate response
Model Context Protocol (MCP), clearly explained (with visuals):
MCP is like a USB-C port for your AI applications.
Just as USB-C offers a standardized way to connect devices to various accessories, MCP standardizes how your AI apps connect to different data sources and tools.
Let's dive in! 🚀
At its core, MCP follows a client-server architecture where a host application can connect to multiple servers.