MCP Server from Scratch using Python
Overview
MCP Server from Scratch using Python is a project that demonstrates how to create a Model Context Protocol (MCP) server using Python. This server is designed to handle context and model interactions in AIML (Artificial Intelligence Markup Language).
To use the MCP Server, clone the repository, navigate to the project directory, install the required dependencies, and run the server using Python.
- Custom MCP (Model Context Protocol) handling - Packet parsing and serialization - Multiplayer server capabilities - Detailed documentation
- Building AI applications that require context management.
- Developing multiplayer games that utilize model interactions.
- Creating custom AI models that need a server for context handling.
Add to your AI client
Use these steps to connect MCP Server from Scratch using Python in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-from-scratch-using-python-kunjshah95": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-from-scratch-using-python-kunjshah95"
]
}
}
}FAQ
What is MCP?
MCP stands for Model Context Protocol, which is used to manage context in AI applications.
Is the server easy to set up?
Yes! The server can be set up easily by following the installation instructions provided in the documentation.
Can I contribute to the project?
Absolutely! Contributions are welcome, and you can follow the contributing guidelines in the repository.