|
| 1 | +# Linkup Model Context Protocol |
| 2 | + |
| 3 | +This package provides a [Model Context Protocol](https://modelcontextprotocol.com/) server for integrating Linkup's web search functionality with AI models that support function calling through MCP. |
| 4 | + |
| 5 | +## Installation & Usage |
| 6 | + |
| 7 | +You can run the Linkup MCP server directly using npx: |
| 8 | + |
| 9 | +```bash |
| 10 | +npx -y linkup-mcp --api-key=YOUR_LINKUP_API_KEY |
| 11 | +``` |
| 12 | + |
| 13 | +Alternatively, you can set your API key as an environment variable: |
| 14 | + |
| 15 | +```bash |
| 16 | +export LINKUP_API_KEY=YOUR_LINKUP_API_KEY |
| 17 | +npx -y linkup-mcp |
| 18 | +``` |
| 19 | + |
| 20 | +# Command Line Options |
| 21 | + |
| 22 | +| Option | Description | |
| 23 | +| ------------ | ----------------------------------------------------------------- | |
| 24 | +| `--api-key` | Your Linkup API key (required unless `LINKUP_API_KEY` env is set) | |
| 25 | +| `--base-url` | Custom API base URL (default: `https://api.linkup.so/v1`) | |
| 26 | +| `--help, -h` | Show help text | |
| 27 | + |
| 28 | +# Usage with Claude |
| 29 | + |
| 30 | +Add the following to your `claude_desktop_config.json`. See the [MCP documentation](https://modelcontextprotocol.io/quickstart/user) for more details. |
| 31 | + |
| 32 | +To ensure compatibility with Claude, we recommend that `npx` command be accessible within the same environment. A common location for this is `/usr/local/bin/node` (on mac) |
| 33 | + |
| 34 | +```json |
| 35 | +{ |
| 36 | + "mcpServers": { |
| 37 | + "linkup": { |
| 38 | + "command": "npx", |
| 39 | + "args": ["-y", "linkup-mcp"], |
| 40 | + "env": { |
| 41 | + "LINKUP_API_KEY": "YOUR_LINKUP_API_KEY" |
| 42 | + } |
| 43 | + } |
| 44 | + } |
| 45 | +} |
| 46 | +``` |
| 47 | + |
| 48 | +or |
| 49 | + |
| 50 | +```json |
| 51 | +{ |
| 52 | + "mcpServers": { |
| 53 | + "linkup": { |
| 54 | + "command": "npx", |
| 55 | + "args": ["-y", "linkup-mcp", "--api-key=YOUR_LINKUP_API_KEY"] |
| 56 | + } |
| 57 | + } |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +## Available Tools |
| 62 | + |
| 63 | +| Tool | Description | |
| 64 | +| ------------ | --------------------------------------- | |
| 65 | +| `search-web` | Perform a web search query using Linkup | |
| 66 | + |
| 67 | +## Development |
| 68 | + |
| 69 | +Clone the repository and install dependencies: |
| 70 | + |
| 71 | +```bash |
| 72 | +git clone git@github.com:LinkupPlatform/linkup-js-mcp.git |
| 73 | +cd linkup-js-mcp |
| 74 | +npm install |
| 75 | +``` |
| 76 | + |
| 77 | +# Available Scripts |
| 78 | + |
| 79 | +| Script | Description | |
| 80 | +| -------------------- | ---------------------------- | |
| 81 | +| `npm run build` | Build the TypeScript project | |
| 82 | +| `npm run lint` | Run ESLint | |
| 83 | +| `npm run format` | Format code with Prettier | |
| 84 | +| `npm run test` | Run tests | |
| 85 | +| `npm run test:watch` | Run tests in watch mode | |
| 86 | + |
| 87 | +# License |
| 88 | + |
| 89 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
0 commit comments