What is MCP ?
Think of MCP as HTTP for LLMs, providing a standardized way for large language models to connect with diverse data sources seamlessly
The Model Context Protocol (MCP) is a framework that allows LLMs to fetch and leverage external context, such as documents, APIs, or databases, to improve their performance and relevance.
For researchers, developers, and AI enthusiasts the journey of understanding and implementing MCP has just begun. Embrace the challenge, explore its potential, and help shape the future of contextual intelligence.
Setting up MCP Server :
In Windows this is the most easy way to setup MCP :
Prerequisites: node & npm
node --version npm --version
Install MCP Servers
npm install -g @modelcontextprotocol/server-memory npm install -g @modelcontextprotocol/server-everything npm install -g @modelcontextprotocol/server-brave-search
Open claude_desktop_config.json file and edit it with
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\Users\\Your-Name\\Desktop"
]
}
},
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "Your Brave API KEY"
}
}
}
Opening claude_desktop_config.json file via :
a) PowerShell
code C:\Users\ankit\AppData\Roaming\Claude\claude_desktop_config.json .
b) Claude Desktop App
Open Claude Desktop App
In Settings > Developer > Edit Config
MCP in Claude Desktop App :
-
Type prompt and woah you got the agent locally !🤯🤯
-
PROMT : Search Price of SOL
Build your own MCP Server
Notion MCP Server :
Let’s create a Notion MCP server which will connect to your Notion Workspace
Making your own mcp server is very easy you can think it like a typescript project
npm init -y npm install tsc npx tsc --init
tsconfig rootDir:"/src" outDir: "/build"
package.json
{ "name": "notion-mcp-server", "version": "1.0.0", "description": "MCP Server for Notion", "private": true, "type": "module", "bin": { "notion-mcp-server": "./build/index.js" }, "files": [ "build" ], "scripts": { "build": "tsc && node build/index.js", "prepare": "npm run build", "watch": "tsc --watch", "inspector": "npx @modelcontextprotocol/inspector build/index.js" }, "dependencies": { "@modelcontextprotocol/sdk": "0.6.0", "dotenv": "^16.4.7" }, "devDependencies": { "@types/node": "^20.11.24", "tsc": "^2.0.4", "typescript": "^5.3.3" } }
OR
git clone https://github.com/arre-ankit/notion-mcp-server.git cd notion-mcp-server npm install npm run build
Edit your claude_desktop_config.json :
Add Notion Integration
Click on "New integration"
Name it "Claude MCP Server"
Select "Read" and "Write" permissions for "Pages"
Copy the "Integration Token"
Copy Path of build/index.js and paste in notion-mcp-server → args
{
"mcpServers":
"notion-mcp-server": {
"command": "node",
"args": [
"Copy Path"
],
"env": {
"NOTION_API_TOKEN": "Your Notion Token"
}
}
}
}
To add content in page you have to provide Notion Page Link in prompt
-
Example of Prompt":
Make a new Databse entry in notion with this
of list of movies to watch in 2024
Page link https://www.notion.so/154916e48026802f97d4df6086787817
Add the movie datase in this page
Conclusion:
Build your own MCP servers and experiment with it you surely would be amazed !!
The Model Context Protocol is more than a technological innovation—it's a philosophical approach to machine intelligence. By prioritizing context, nuance, and adaptive learning, MCP is not just improving AI it's redefining what artificial intelligence can achieve.
We are heading towards AGI 🤯!!!