This repository contains an implementation of an MCP Server for interfacing with the RapidAPI Global Patent API and storing patent data in a SQLite database.
- RapidAPI Global Patent API integration
- MCP Server implementation for handling patent requests
- SQLite database integration for patent data storage
- Advanced patent scoring system (pscore, cscore, lscore, tscore)
- Rate limiting and error handling
- Clone the repository:
git clone https://github.com/myownipgit/RapidAPI-MCP.git
cd RapidAPI-MCP- Create and activate conda environment:
# Create environment from yml file
conda env create -f environment.yml
# Activate environment
conda activate rapidapi-mcpAlternatively, you can create the environment manually:
# Create new environment with Python 3.11
conda create -n rapidapi-mcp python=3.11
# Activate environment
conda activate rapidapi-mcp
# Install required packages
conda install -c conda-forge requests aiohttp python-dotenv pytest
pip install rapidapi-connect- Set up environment variables:
cp .env.example .env
# Edit .env with your settings- Initialize the MCP Server:
from patent_mcp.server import MCPPatentServer
mcp_server = MCPPatentServer()- Handle patent search requests: