Intro
Hello! I'm a Ninja Web Developer. Hi-Yah!🥷
I wrote how to use MCP server under proxy before.
🧠🥷How to use MCP in Cline and Cursor 2 (use under Proxy)
However, I had an another proxy related trouble, so I would like to share it.
Hope this post will help someone whose suffering to use MCP.
Let's start!🚀
MCP server fails under proxy
In my last post, I wanted to use Slack MCP, and had trouble connecting Slack and MCP.
This time, I wanted to use Excel MCP, and couldn't use it from the very beginning.
It says "Failed to create client".↓
It looked like npx is failing, because of proxy.
By the way, what is npx
?
I ran npm
many times before, but met npx for the first time when using MCP, and most MCPs are using npx.
npx will install, run, uninstall the package with only one command.
Therefore, you can use MCP without affecting your environment.
In my case, npx failed, probably of proxy.
So, one way to avoid this is to run MCP locally.
How to use MCP under proxy (case when npx fails)
I will explain by using Excel MCP.↓
https://github.com/negokaz/excel-mcp-server
1️⃣ Make a new directory for the Excel MCP, and open it with your terminal.
2️⃣ Install Excel MCP locally.↓
npm install @negokaz/excel-mcp-server
3️⃣ Rewrite mcp.json
for Cursor and cline_mcp_settings.json
for Cline. (for Windows).↓
{
"mcpServers": {
"excel": {
"command": "cmd",
"args": ["/c", "node", "C:/path to mcp directory/node_modules/@negokaz/excel-mcp-server/dist/launcher.js"],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}
Change npx to node
, and change path to execute file of MCP.
Most cases, execute file is index.js
, but at Excel MCP it was launcher.js
.
4️⃣ Restart your editor, and you are ready for your MCP!🎉
Also, setting up MCP server locally seems to be a little faster than using npx, because it doesn't have to install the package every time before using.
Outro
Proxy is useful, but bothers me every time and everywhere.
Please let me know, if there are better ways to handle proxy when using MCP.
Thank you for reading.
Happy AI coding!🤖 Hi-Yah!🥷
Update (2025/04/06):Wrote about MCP Security
🧠🥷MCP Security (choose safe MCP and check MCP safety)🛡️
Update (2025/04/12):Wrote about Vroid
🧠🥷How to make AI controled Avatar 1 (VRoid)
Update (2025/04/19):Wrote about Vroid MCP
🧠🥷How to make AI controled Avatar 2 (Vroid MCP + Cline and Cursor + Unity)
Top comments (0)