Custom-MCP-Server-for-AI-Agents
MCPioneer is a beginner-friendly project for creating a custom MCP server using Python, enhancing AI agents' capabilities.
MCPioneer š
Build Your Own Custom MCP Server for AI Agents
MCPioneer is a beginner-friendly project demonstrating how to create a custom MCP (Message/Command/Processing) server using Python. This server acts as a bridge to extend the capabilities of AI agents, allowing them to perform external tasks like calling APIs, accessing databases, and executing custom tools.
š What is MCP?
An MCP server provides tools, resources, and services that AI agents can access to enhance their functionalities. Think of it as a "toolbox" that an AI can open whenever it needs external help beyond its basic capabilities.
āļø Technologies Used
- Python 3.10+
- MXGp Python SDK
- UV Package Manager
- Claude Desktop (for testing)
š Getting Started
1. Install UV (Better Package Manager)
- Windows:
iwr -useb https://mirror.ghproxy.com/https://raw.githubusercontent.com/astral-sh/uv/main/scripts/install.ps1 | iex
- Mac/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Initialize Project
uv init .
uv add mcp cli
3. Create a Simple MCP Server
Example main.py
:
from mcp_servers.fast_mcp import FastMCP
server = FastMCP(name="DemoServer")
@server.tool
def add_numbers(a: int, b: int) -> int:
return a + b
@server.resource
def greet(name: str) -> str:
return f"Hello, {name}!"
server.run()
4. Install MCP Server into Claude Desktop
uv run mcp install main.py
5. Configure Claude Desktop
- Go to Settings ā Developer ā Edit Config.
- Add your server to the configurations manually if necessary.
- Restart Claude Desktop if you don't see the MCP server immediately.
š ļø Project Structure
MCPioneer/
āāā main.py
āāā README.md
āāā .venv/ (created automatically)
āāā uv.toml
⨠Author
Created with ā¤ļø by Nithin.
Related MCP Servers
View all developer_tools servers ācontext7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packs your codebase into AI-friendly formats, making it easier to use with AI tools like LLMs.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.