MCP.so
Sign In
Servers

mc-server-demo

@PanGan21

Mini mcp server implementation

Overview

What is mc-server-demo?

mc-server-demo is a Model Context Protocol (MCP) server that retrieves the latest documentation for a queried library. It uses the Serper API to perform Google searches for the relevant documentation. The server is designed for developers who want to access library documentation programmatically via MCP tools, either for debugging or integration into IDEs like Cursor.

How to use mc-server-demo?

To use mc-server-demo, first set a SERPER_API_KEY in a .env file. Then create a virtual environment, activate it, and install dependencies with pip install -r requirements.txt. Run the server using the MCP inspector: npx @modelcontextprotocol/inspector python main.py. The inspector lists available tools, including get_docs, which accepts query strings. Alternatively, integrate the server with a client like Cursor IDE by adding a custom MCP server configuration that points to the Python interpreter and main.py.

Key features of mc-server-demo

  • Retrieves the latest documentation for a queried library.
  • Uses the Serper API for Google search.
  • Exposes a single MCP tool: get_docs.
  • Can be debugged via the MCP inspector.
  • Integrates with Cursor IDE as a custom MCP server.

Use cases of mc-server-demo

  • Fetching library documentation directly from within a development environment.
  • Powering AI assistants that answer library documentation queries.
  • Automating documentation lookups in CI/CD or documentation workflows.

FAQ from mc-server-demo

What API key is required?

The server requires a Serper API key, which must be set in a .env file as SERPER_API_KEY.

How do I run the server for debugging?

Run the MCP inspector command: npx @modelcontextprotocol/inspector python main.py, then visit the local inspector URL displayed in the terminal.

What tool is available for querying documentation?

The server provides a single tool called get_docs that accepts a query string.

How do I integrate mc-server-demo with Cursor IDE?

In Cursor, go to AI settings → Custom MCP Server, and add a configuration with the command "${workspaceFolder}/.venv/bin/python" and arguments ["main.py"].

What license is mc-server-demo released under?

The project is licensed under the MIT License.

Tags

More from Other