2.0.0 • Published 9 months ago
@opra-app/mcp v2.0.0
OPRA MCP Server
This is a Model Context Protocol (MCP) server implementation that provides access to OPRA's business and discount data. The server exposes various tools that allow your client of choice to interact with OPRA's data programmatically.
Setup Instructions
Generate an API key at https://opra.no/profil
Configure Claude Desktop:
- Open Claude Desktop
- Go to Settings > Developer
- Click "Edit Config"
- Paste in the following config:
{
"mcpServers": {
"opra": {
"command": "npx",
"args": [
"-y", "@opra-app/mcp"
],
"env": {
"OPRA_API_KEY": "<your api key>",
}
}
}
}- Restart Claude Desktop to apply the changes
Usage
The MCP server provides quite a few tools for you to explore discounts, businesses, dicounts in a given city and a lot more.
Restart your Claude Desktop app, and start asking away!
Clone the repository:
git clone https://github.com/your-username/opra-mcp.git cd opra-mcpInstall dependencies:
npm installBuild the project:
npm run buildMake changes to the source code in the
srcdirectoryRebuild after making changes:
npm run build
Project Structure
src/: Source code directorytools/: Individual tool implementationsapi.ts: API client implementationenv.ts: Environment configurationindex.ts: Main entry point
Dependencies
@modelcontextprotocol/sdk: MCP SDK for implementing the protocolzod: Runtime type checking and validation
License
MIT