MCP_Server
MCP server from Ronak501/MCP_Server
claude mcp add --transport stdio ronak501-mcp_server python -m mcp_server \ --env ENVIRONMENT="optional runtime environment (e.g., development, production)"
How to use
The MCP Server provides a lightweight framework for managing and querying contextual data for AI models. It supports creating, updating, and retrieving structured context entries, and includes a keyword-based search to identify relevant contexts for a given user query. Contexts can be loaded from external JSON files, enabling dynamic updates without modifying the server code. Tools exposed by the server allow you to add contexts, query for relevant contexts, and prepare model-ready context data for AI models. This makes it easier to supply AI models with targeted backgrounds and facts during inference.
How to install
Prerequisites:
- Python 3.8 or newer
- pip (comes with Python)
Installation steps:
-
Clone the repository (or download the source): git clone https://github.com/your-repo/mcp-server.git cd mcp-server
-
Create a virtual environment (optional but recommended): python -m venv env source env/bin/activate # on macOS/Linux .\env\Scripts\activate # on Windows
-
Install dependencies: pip install -r requirements.txt
-
Run the MCP Server: python -m mcp_server
-
(Optional) Load initial context from a JSON file if supported by your setup:
Example: mcp_server loads contexts from a JSON file upon startup
export MCP_CONTEXTS_PATH=/path/to/contexts.json python -m mcp_server
Additional notes
Notes and tips:
- The server uses JSON-based storage for contexts and supports file-based loading of contexts to keep data in sync with external sources.
- Use the provided API methods to add or update contexts, retrieve specific contexts, and query for relevant contexts based on keywords.
- Enable verbose debugging in the environment if you need detailed logs during query processing.
- If you plan to load large context datasets, consider batching the load and monitoring memory usage.
- Environment variables can be used to control behavior (e.g., paths to JSON context files, logging level, and query relevance thresholds).
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP