Skip to content

Commit 09f2ef0

Browse files
Merge remote changes and update README.md
2 parents 354095f + 365cc12 commit 09f2ef0

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
# Use Node.js LTS version as the base image
3+
FROM node:18-alpine AS builder
4+
5+
# Set the working directory
6+
WORKDIR /app
7+
8+
# Copy package.json and package-lock.json to the working directory
9+
COPY package.json package-lock.json ./
10+
11+
# Install dependencies
12+
RUN npm install --ignore-scripts
13+
14+
# Copy the rest of the application code to the working directory
15+
COPY . .
16+
17+
# Build the TypeScript files
18+
RUN npm run build
19+
20+
# Use a clean Node.js image for the production environment
21+
FROM node:18-alpine AS release
22+
23+
# Set the working directory
24+
WORKDIR /app
25+
26+
# Copy built files and node_modules from the builder stage
27+
COPY --from=builder /app/build ./build
28+
COPY --from=builder /app/node_modules ./node_modules
29+
COPY --from=builder /app/package.json ./
30+
31+
# Set environment variables (replace YOUR_API_KEY_HERE with the actual key)
32+
ENV PERPLEXITY_API_KEY=YOUR_API_KEY_HERE
33+
34+
# Expose the port the app runs on
35+
EXPOSE 3000
36+
37+
# Command to run the application
38+
ENTRYPOINT ["node", "build/index.js"]

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
# Perplexity MCP Server
1+
# MCP-researcher Server
2+
[![smithery badge](https://smithery.ai/badge/@DaInfernalCoder/perplexity-mcp)](https://smithery.ai/server/@DaInfernalCoder/perplexity-mcp)
23

3-
An intelligent research assistant powered by Perplexity's specialized AI models. Features automatic query complexity detection to route requests to the most appropriate model for optimal results. Unlike the Official server, it has search capabilities FOR EVERY TASK, essentially
4+
Your own research assistant inside of Cline! Utilizes Perplexity's new Sonar Pro API to get docs, create up-to-date api routes, and check deprecated code while you create features with Cline. Features automatic query complexity detection to route requests to the most appropriate model for optimal results.
5+
6+
Includes Chain of Thought Reasoning and local chat history through SQLite thanks to Lix for the idea :)
7+
8+
Check out our article about perplexity mcp!
9+
https://cline.bot/blog/supercharge-cline-3-ways-to-build-better-with-perplexity-mcp
10+
11+
<a href="https://glama.ai/mcp/servers/g1i6ilg8sl"><img width="380" height="200" src="https://glama.ai/mcp/servers/g1i6ilg8sl/badge" alt="MCP-researcher Server MCP server" /></a>
412

513
## Tools
614

@@ -74,6 +82,14 @@ The server automatically analyzes query complexity to route requests to the most
7482

7583
You can override the automatic selection using `force_model: true` in any tool's arguments.
7684

85+
### Installing via Smithery
86+
87+
To install MCP-researcher Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@DaInfernalCoder/perplexity-mcp):
88+
89+
```bash
90+
npx -y @smithery/cli install @DaInfernalCoder/perplexity-mcp --client claude
91+
```
92+
7793
## Setup
7894

7995
1. **Prerequisites**
@@ -126,6 +142,7 @@ Or use NPX to not have to install it locally:
126142
}
127143
}
128144
```
145+
129146
## Local Development
130147

131148
1. Clone the repository
@@ -141,3 +158,7 @@ or
141158

142159
- Type checking: `npm test`
143160
- Manual testing: `npm run inspector`
161+
162+
## Star History
163+
164+
[![Star History Chart](https://api.star-history.com/svg?repos=DaInfernalCoder/perplexity-mcp&type=Date)](https://www.star-history.com/#DaInfernalCoder/perplexity-mcp&Date)

smithery.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- perplexityApiKey
10+
properties:
11+
perplexityApiKey:
12+
type: string
13+
description: The API key for the Perplexity API.
14+
commandFunction:
15+
# A function that produces the CLI command to start the MCP on stdio.
16+
|-
17+
(config) => ({ command: 'node', args: ['build/index.js'], env: { PERPLEXITY_API_KEY: config.perplexityApiKey } })

0 commit comments

Comments
 (0)