mcp-server-demo
If you are the rightful owner of mcp-server-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server implementation that retrieves the latest documentation of a queried library.
mc-server-demo
A Model Context Protocol (MCP) server implementation that can retieve the latest documentation of a queried library.
Setup locally
- The MCP tool is using Serper API to seach or Google therefore an api key should be specified. See on how to define it.
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environemt:
source .venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
Debug
- Run usin Model Context Protocol inspector:
npx @modelcontextprotocol/inspector python main.py
- Visit the local inspector url displayed on terminal.
- List the available tools and use
get_docs
to input queries.
Client integration
- Example of Cursor IDE
- Navigate to AI settings
- Under "Custom MCP Server", add the following configuration:
{ "command": "${workspaceFolder}/.venv/bin/python", "args": ["main.py"] }
License
This project is licensed under the MIT License - see the file for details.