Intro
Hello! I'm a Ninja Web Developer. Hi-Yah!🥷
Last time, I introduced AI agent Cursor and Cline.
🧠🤖AI coding agent 1 (Cline + Cursor)
I studied more about them, and found that they have a function called MCP (Model Context Protocol)
.
So, this time I researched MCP, and gave it a try.🚀
What is MCP?
MCP is an open protocol that standardizes how applications provide context to LLMs.
The link below is the document of MCP.
https://modelcontextprotocol.io/introduction
Explaining MCP very simply with my word, AI can communicate with other things using MCP.
For example, Slack, Github, Google Drive, and many more.
Here is the repository of MPC Server.
https://github.com/modelcontextprotocol/servers
You can choose what service you want AI to communicate with from the repository.
I won't explain the details of MCP here.
Instead, I would like to share how to use MCP at Cursor and Cline, because I wasted much time setting up MCP on 2025/03/15.🤮
I hope it will be a help to someone else.
How to use MCP in Cursor
Document of Cursor MCP↓
https://docs.cursor.com/context/model-context-protocol
I will write about Slack MCP Server
for example.
1️⃣ Follow the "setup" part of link below to set slack for MCP.
https://github.com/modelcontextprotocol/servers/tree/main/src/slack
2️⃣ In 202/03/15, I use cursor 0.47.5, because the latest version supports environment variables for MCP.
https://www.cursor.com/ja/changelog
You can use 0.47.5 as Early Access from↓
Cursor Settings > Beta > Update frequency > Early Access
3️⃣ Add a MCP Server from↓
Cursor Settings > Features > MCP > + Add new global MCP Server
Add mcp.json
of Slack.
It didn't work as the document in my PC, maybe because of using windows.
I follow the Cursor forum below, and change the command from npx to cmd, and move the npx to args, and add c/ to args.
https://forum.cursor.com/t/npx-command-is-not-working-on-mcp-windows-and-macos/53486
Here is my final code of mcp.json
.
{
"mcpServers": {
"slack": {
"command": "cmd",
"args": ["/c", "npx", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
Json code is same as Cline
If the icon of MCP Server will become red to green, you are ready for MCP.🎉
How to use MCP in Cline
Document of Cline MCP↓
https://docs.cline.bot/mcp-servers/mcp-quickstart
I will write about Slack MCP Server
for example.
1️⃣ Follow the "setup" part of link below to set slack for MCP.
https://github.com/modelcontextprotocol/servers/tree/main/src/slack
2️⃣ Click the "Extensions" (square icon) button in the top toolbar of Cline.
3️⃣ Choose the MCP Server you want to use, this time slack, and push instal button.
Cline will automatically prepare the MCP Server for you.
4️⃣ Setting code to cline_mcp_settings.json
It didn't work as the document in my PC, maybe because of using windows.
I follow the Cursor forum below, and change the command from npx to cmd, and move the npx to args, and add c/ to args.
https://forum.cursor.com/t/npx-command-is-not-working-on-mcp-windows-and-macos/53486
Here is my final code of cline_mcp_settings.json
{
"mcpServers": {
"slack": {
"command": "cmd",
"args": ["/c", "npx", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
Json code is same as Cursor.
You are ready for MCP.🎉
Problems of using MCP
I succeeded running MCP at home, but failed at work.🤮
I am suspecting that proxy
is the reason, because it is the difference between my home and work place.
I can communicate with AI by setting the proxy env properly, but can't communicate with Slack after that.
I couldn't figure out how to solve this problem yet.🙇
I will follow up if I know how to use MCP under proxy.
Update (2025/03/20): Wrote about MCP in Cline and Cursor under Proxy
🧠🥷How to use MCP in Cline and Cursor 2 ( use under Proxy)
Outro
MCP (Model Context Protocol) has just become popular these days.
It might change the future of AI.
Using MCP, AI will start to communicate with everything around us!
I would like to learn more about MCP and post it.
Thank you for reading.
Happy AI coding!🤖 Hi-Yah!🥷
Update (2025/03/22):Wrote about How to make MCP (Cline and Cursor)
🧠🥷How to make MCP (Cline and Cursor)
Top comments (2)
I would love to setup explore more on MCP. Thank you for the detailed explanation, It’s really useful 🎉👌. Keep us posted about your findings.
Regards,
Ram
Thank you for your comment.😃
I think MCP is full possibility now.
Also, MCP will lead us to "Happy AI coding!".🤖