I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Server-Poc
Este proyecto demuestra cómo crear y utilizar un servidor de Protocolo de contexto modelo (MCP) que pueda proporcionar herramientas y recursos personalizados a asistentes de IA como Claude y otros que admiten el estándar MCP. El servidor incluye: - Operaciones de matemáticas simples (adición) - Recursos de saludo dinámico - Capacidad de rastreo web utilizando la biblioteca Crawl4ai
1
Github Watches
1
Github Forks
3
Github Stars
MCP Server POC
A proof-of-concept implementation of a Model Context Protocol (MCP) server for enhancing AI assistant capabilities with custom tools and resources.
Overview
This project demonstrates how to create and use a Model Context Protocol (MCP) server that can provide custom tools and resources to AI assistants like Claude and others that support the MCP standard. The server includes:
- Documentation search tool for LangChain, LlamaIndex, and OpenAI
- Web crawling capability
- Integration with Google Search API
Requirements
- Python 3.11
- Required packages listed in requirements.txt
Installation and Setup
- Clone this repository:
git clone https://github.com/yourusername/mcp-server-poc.git
cd mcp-server-poc
- Create and activate a virtual environment:
# Create a Python 3.11 virtual environment
python -m venv venv
# Activate on Windows
.\venv\Scripts\Activate.ps1
# Activate on macOS/Linux
source venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
Create a
.env
file in the root directory with the following:
SERPER_API_KEY=your_serper_api_key_here
Running the Application
To run the MCP server:
python main.py
The server will start and wait for connections using the stdio transport method.
Integrating with Cursor
To use this MCP server with Cursor IDE:
- Create or edit the file
~/.cursor/mcp.json
(on Windows:C:\Users\<username>\.cursor\mcp.json
) with the following content:
{
"mcpServers": {
"mcp-server": {
"command": "python",
"args": [
"ABSOLUTE/PATH/TO/main.py"
]
}
}
}
-
Replace the path with the absolute path to your
main.py
file.- On Windows, use double backslashes:
C:\\Users\\username\\path\\to\\main.py
- On macOS/Linux, use regular slashes:
/Users/username/path/to/main.py
- On Windows, use double backslashes:
-
Restart Cursor completely (including ending any background processes) to load the MCP server.
Features
Tools
- get_docs(query, library): Searches the documentation for the specified library (langchain, llama-index, or openai) and returns relevant information
Technical Details
Windows Binary Mode Fix
This server includes a specific fix for Windows to ensure proper operation with stdio transport:
# Set binary mode for stdin/stdout on Windows
if os.name == 'nt':
import msvcrt
msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
This fix is necessary because Windows distinguishes between text and binary modes for file handling, which can cause issues with the stdio transport mechanism used by MCP.
Troubleshooting
If you encounter issues with the MCP server:
Windows-Specific Issues
-
"Failed to create client" or "Client closed" errors:
- Make sure to use the binary mode fix included in the server
- Use the absolute path with double backslashes in the mcp.json configuration
- Try running the MCP server directly to see if it produces any error output
- Completely exit Cursor (including terminating any background processes via Task Manager) before restarting
General Issues
- Verify that all required packages are installed (
pip list
to check) - Check that the absolute path in the configuration file is correct
- Make sure the MCP server is running with the proper version of Python (3.11)
- Verify that your
.env
file contains the required API key - Try reinstalling the MCP package:
pip uninstall mcp && pip install mcp
License
Acknowledgements
- This project uses the Model Context Protocol SDK
- Web crawling functionality provided by crawl4ai
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Espejo dehttps: //github.com/agentience/practices_mcp_server
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Espejo de https: //github.com/bitrefill/bitrefill-mcp-server
Reviews

user_Ndfcx8Yr
I've been using mcp-server-poc for a while and I must say it significantly simplified my server management tasks. The setup was straightforward, and the documentation by TarcisioPhilips is thorough and easy to follow. Highly recommended for anyone looking to streamline their server operations! Check it out on GitHub: https://github.com/TarcisioPhilips/mcp-server-poc