|
1 | 1 | --- |
2 | 2 | title: Devfolio MCP |
3 | | -description: Learn about Devfolio MCP (Model Context Protocol) integration. |
4 | 3 | --- |
5 | 4 |
|
6 | | -<Callout title="Announcement" type="info"> |
7 | | -Builders, meet the Devfolio MCP Server (Beta). |
| 5 | +import { Tabs, Tab } from "fumadocs-ui/components/tabs"; |
8 | 6 |
|
9 | | -Pull your profile. Fetch your hackathons. Draft a submission, all from the comfort of your AI client. |
10 | | -</Callout> |
11 | | - |
12 | | -## 🤔 What is MCP? |
13 | | - |
14 | | -**MCP** stands for **Model Context Protocol** - a protocol that securely streams relevant personal or app-specific data to AI models, helping them respond with deeper context and awareness. |
| 7 | +Devfolio [MCP](https://nsb.dev/devfolio-mcp-explainer) lets you connect Devfolio to AI tools like [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex), and [Cursor](https://www.cursor.com/), so they can help you with your hackathon submissions using context from your local project files. |
15 | 8 |
|
16 | | -In this case, it allows you to connect your Devfolio account to any MCP-compatible AI tool (like Cursor, VS Code extensions, or Claude) using a simple JSON configuration. This means the AI can understand things like your Devfolio profile, projects, and hackathon activity **only if you allow it**. |
17 | | - |
18 | | -<Callout title="Want to dive deeper?" type="info"> |
19 | | -Check this out → [Devfolio MCP Explainer](https://nsb.dev/devfolio-mcp-explainer) |
20 | | -</Callout> |
| 9 | +Once connected, your AI tool can quickly understand your codebase, help you write stronger submissions faster, surface relevant tracks to apply for, and make it easier to showcase what you’ve built. |
21 | 10 |
|
22 | 11 | <iframe |
23 | 12 | width="100%" |
24 | 13 | height="400" |
25 | | - src="https://drive.google.com/file/d/1LHIWX9uWOmXrJK_dnY0rLRf8Qa4ya76p/preview" |
| 14 | + src="https://www.youtube.com/embed/BnyOcD7fIqI" |
26 | 15 | title="Devfolio MCP Demo" |
27 | 16 | frameBorder="0" |
28 | 17 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
29 | 18 | allowFullScreen |
30 | 19 | /> |
31 | 20 |
|
32 | | ---- |
| 21 | +## Quick Start |
33 | 22 |
|
34 | | -## 🧠 Unlock Devfolio's MCP AI — Step-by-Step Guide |
| 23 | +1. Open [`Account Settings > MCP`](https://devfolio.co/settings/mcp). |
| 24 | +2. Click `Generate API key`. |
| 25 | +3. Choose the setup format for your AI tool. |
| 26 | +4. Paste the prompt, run the command, or copy the JSON shown. |
35 | 27 |
|
36 | | -<Callout title="Beta Access Required" type="warning"> |
37 | | -This feature is currently available for Beta Users Only |
| 28 | +<Callout title="Keep your API key private" type="error"> |
| 29 | +Your MCP API key is sensitive, like a password. Anyone with access can act on your behalf. If it is compromised, revoke it and generate a new one right away. |
38 | 30 | </Callout> |
39 | 31 |
|
40 | | ---- |
| 32 | +## Where Can I Find Devfolio MCP? |
41 | 33 |
|
42 | | -### ✨ Step 1: Enter |
| 34 | +You can find Devfolio MCP in Account Settings, your hackathon dashboard, and the project submission page. |
43 | 35 |
|
44 | | -Head to [devfolio.co](https://devfolio.co/) and click on your avatar in the **top-right corner**. From the dropdown, click **Account Settings**. |
| 36 | +Hackathon dashboard and submission-page shortcuts appear only when project submissions are open and your account is eligible to submit. |
45 | 37 |
|
46 | | -<img src="/assets/mcp-step1.webp" alt="Account Settings" /> |
| 38 | +### 1. From Account Settings |
47 | 39 |
|
48 | | ---- |
| 40 | +Go to your profile menu, open `Account Settings`, and select the `MCP` tab. |
49 | 41 |
|
50 | | -### 🧪 Step 2: Join the Beta Club |
| 42 | +<img src="/assets/mcp-setting.webp" alt="Devfolio MCP tab in Account Settings" /> |
51 | 43 |
|
52 | | -In the **left sidebar**, find the tab labeled **Beta**. Click it, and hit **Join [Devfolio Beta](https://devfolio.co/settings/beta)**. |
| 44 | +Click `Generate API key` to create your MCP API key. |
53 | 45 |
|
54 | | -<Callout title="Welcome to the experimental zone" type="info"> |
55 | | -You're now part of the experimental zone. No lab coats required. |
56 | | -</Callout> |
| 46 | +<img src="/assets/mcp-configure-setting.webp" alt="Devfolio MCP setup options in Account Settings" /> |
57 | 47 |
|
58 | | -<img src="/assets/mcp-step2.webp" alt="Join Beta" /> |
| 48 | +### 2. From Your Hackathon Dashboard |
59 | 49 |
|
60 | | ---- |
| 50 | +For hackathons where submissions are open to you, you may also see an `MCP Integration` card on your hackathon dashboard. |
61 | 51 |
|
62 | | -### 🤖 Step 3: Find the "MCP" Gateway |
| 52 | +<img src="/assets/mcp-dashboard.webp" alt="MCP Integration card on a hackathon dashboard" /> |
63 | 53 |
|
64 | | -Once you've joined the Beta program, a new tab magically appears just below — called **MCP**. Click it: [https://devfolio.co/settings/mcp](https://devfolio.co/settings/mcp) |
| 54 | +<img src="/assets/mcp-configure-model-dashboard.webp" alt="Devfolio MCP setup window opened from the hackathon dashboard" /> |
65 | 55 |
|
66 | | -<Callout title="What is Devfolio MCP?" type="info"> |
67 | | -Devfolio MCP = Devfolio's Model Context Protocol Server. |
68 | | -</Callout> |
| 56 | +### 3. From the Project Submission Page |
69 | 57 |
|
70 | | -<img src="/assets/mcp-step3.webp" alt="MCP Gateway" /> |
| 58 | +When you are submitting a hackathon project, you may see a small floating MCP assistant button in the bottom-left corner of the submission page. |
71 | 59 |
|
72 | | ---- |
| 60 | +<img src="/assets/mcp-project.webp" alt="MCP assistant button on the project submission page" /> |
73 | 61 |
|
74 | | -### 🔐 Step 4: Configure the MCP |
| 62 | +Clicking this button opens the MCP setup window. |
75 | 63 |
|
76 | | -Inside the MCP tab: |
| 64 | +<img src="/assets/mcp-configure-model-project.webp" alt="Devfolio MCP setup window opened from the project submission page" /> |
77 | 65 |
|
78 | | -- Generate your **API Key** |
79 | | -- Copy the auto-generated **JSON config** |
| 66 | +## Setup Commands and Configuration |
80 | 67 |
|
81 | | -<Callout title="Security Warning" type="error"> |
82 | | -Your MCP API key is sensitive — like a password. Anyone with access can act on your behalf. If compromised, revoke it and generate a new one right away. |
83 | | -</Callout> |
| 68 | +Devfolio fills in your actual MCP API key in the setup window. The examples below use `YOUR_API_KEY` as a placeholder. |
84 | 69 |
|
85 | | ---- |
| 70 | +<Tabs items={["Prompt", "Claude Code", "Codex", "Cursor", "JSON"]}> |
| 71 | + <Tab value="Prompt"> |
| 72 | + |
| 73 | +Copy this prompt and paste it into a new chat with your AI assistant: |
| 74 | + |
| 75 | +```text |
| 76 | +Please connect to the Devfolio MCP server using the following URL: |
| 77 | +https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY |
| 78 | +``` |
| 79 | + |
| 80 | + </Tab> |
86 | 81 |
|
87 | | -### 🧩 Step 5: Connect an AI Agent |
| 82 | + <Tab value="Claude Code"> |
88 | 83 |
|
89 | | -Take your JSON config and paste it into a compatible MCP AI client like Cursor or any other that supports streamable HTTP MCP servers. |
| 84 | +Copy this command and run it in your terminal: |
90 | 85 |
|
91 | | -- **Open Your IDE** |
92 | | - - Launch your preferred editor (VS Code, Cursor, etc.). |
93 | | - - Make sure the MCP-compatible plugin/extension is installed. |
94 | | -- **Open the Command Palette** |
95 | | - - Press `Cmd + Shift + P` (Mac) or `Ctrl + Shift + P` (Windows/Linux). |
96 | | - - Type: `MCP` → select `Add MCP Server` (or equivalent). |
97 | | -- **Paste Your Config** |
98 | | - - Paste the JSON config you copied from Devfolio MCP Tab. |
99 | | - - It should look like this: |
| 86 | +```bash |
| 87 | +claude mcp add --transport http devfolio --scope user https://mcp.devfolio.co/mcp \ |
| 88 | + --header "x-api-key: YOUR_API_KEY" |
| 89 | +``` |
| 90 | + |
| 91 | + </Tab> |
| 92 | + |
| 93 | + <Tab value="Codex"> |
| 94 | + |
| 95 | +Copy this command and run it in your terminal: |
| 96 | + |
| 97 | +```bash |
| 98 | +codex mcp add devfolio \ |
| 99 | + --url "https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY" |
| 100 | +``` |
| 101 | + |
| 102 | + </Tab> |
| 103 | + |
| 104 | + <Tab value="Cursor"> |
| 105 | + |
| 106 | +Click `Add to Cursor` in the setup window, then approve the Devfolio MCP server installation in Cursor. |
| 107 | + |
| 108 | + </Tab> |
| 109 | + |
| 110 | + <Tab value="JSON"> |
| 111 | + |
| 112 | +If your MCP client asks for a JSON configuration, copy this setup from Devfolio MCP: |
100 | 113 |
|
101 | 114 | ```json |
102 | 115 | { |
103 | 116 | "mcpServers": { |
104 | 117 | "devfolio": { |
105 | | - "url": "https://mcp.devfolio.co/mcp?apiKey=XXXX-XXXX-XXXX-XXXX-XXXX" |
| 118 | + "url": "https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY" |
106 | 119 | } |
107 | 120 | } |
108 | 121 | } |
109 | 122 | ``` |
110 | 123 |
|
111 | | -<Callout title="What's happening?" type="info"> |
112 | | -You're essentially plugging your AI into your Devfolio universe. |
113 | | -</Callout> |
| 124 | + </Tab> |
| 125 | +</Tabs> |
114 | 126 |
|
115 | | -<img src="/assets/mcp-step5.webp" alt="Cursor IDE configured with Devfolio MCP" /> |
116 | | -<p align="center"><i>Example: Cursor IDE configured with Devfolio MCP</i></p> |
| 127 | +## Example Prompts |
117 | 128 |
|
118 | | ---- |
| 129 | +After connecting Devfolio MCP, try prompts like: |
119 | 130 |
|
120 | | -### 💬 Step 6: Talk to Your Devfolio AI! |
| 131 | +- `Submit my project to Devfolio.` |
| 132 | +- `Suggest the best prize tracks for my project.` |
| 133 | +- `Rewrite my tagline to be clearer and more judge-friendly.` |
| 134 | +- `Check whether my submission is missing anything important.` |
| 135 | +- `Summarize the prizes for this hackathon.` |
121 | 136 |
|
122 | | -Here are some good sample questions to ask the AI: |
123 | | - |
124 | | -- What is my username? |
125 | | -- Analyze and summarize the prizes for the `hackathonName` hackathon. |
126 | | -- Which prizes from the hackathon are most relevant to my project? |
127 | | -- Analyze my project, and create a submission for the `hackathonName` hackathon. |
128 | | -- Update the tagline of my project `projectName` to be more impactful. |
129 | | - |
130 | | -<Callout title="Success!" type="info"> |
131 | | -🎉 Hola! You now have an AI buddy that knows your Devfolio activity. |
| 137 | +<Callout title="Access control" type="info"> |
| 138 | +You can manage or revoke MCP access from [`Account Settings > MCP`](https://devfolio.co/settings/mcp). |
132 | 139 | </Callout> |
133 | | - |
134 | | -<img src="/assets/mcp-step6.webp" alt="AI interaction example" /> |
135 | | - |
|
0 commit comments