Skip to main content
Glama
page-61d31d3d06f7aadf.js6.71 kB
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{2751:(e,r,t)=>{Promise.resolve().then(t.bind(t,5984))},5984:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>N});var s=t(5155),l=t(6874),a=t.n(l),i=t(5853),n=t(2115),o=t(4253),c=t(2085),d=t(2596),u=t(9688);function f(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,u.QP)((0,d.$)(r))}let m=(0,c.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),x=n.forwardRef((e,r)=>{let{className:t,variant:l,size:a,asChild:i=!1,...n}=e,c=i?o.DX:"button";return(0,s.jsx)(c,{className:f(m({variant:l,size:a,className:t})),ref:r,...n})});x.displayName="Button";var h=t(518),p=t(5599);function g(e){let{textToCopy:r,className:t,...l}=e,[a,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(a){let e=setTimeout(()=>{i(!1)},2e3);return()=>clearTimeout(e)}},[a]),(0,s.jsxs)(x,{variant:"ghost",size:"icon",className:f("h-7 w-7",t),onClick:()=>{navigator.clipboard.writeText(r),i(!0)},...l,children:[(0,s.jsx)("span",{className:"sr-only",children:"Copy"}),a?(0,s.jsx)(h.A,{className:"h-4 w-4 text-accent"}):(0,s.jsx)(p.A,{className:"h-4 w-4"})]})}var v=t(5443);let b=v.bL,y=n.forwardRef((e,r)=>{let{className:t,...l}=e;return(0,s.jsx)(v.B8,{ref:r,className:f("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...l})});y.displayName=v.B8.displayName;let w=n.forwardRef((e,r)=>{let{className:t,...l}=e;return(0,s.jsx)(v.l9,{ref:r,className:f("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...l})});w.displayName=v.l9.displayName;let j=n.forwardRef((e,r)=>{let{className:t,...l}=e;return(0,s.jsx)(v.UC,{ref:r,className:f("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...l})});function N(){let e='{\n "mcpServers": {\n "mcp-server-discovery": {\n "url": "https://mcp.1mcpserver.com/mcp/",\n "headers": {\n "Accept": "text/event-stream",\n "Cache-Control": "no-cache",\n }\n }\n }\n}';return(0,s.jsxs)("div",{className:"relative flex min-h-screen flex-col items-center justify-center overflow-hidden p-4 sm:p-8",children:[(0,s.jsx)(a(),{href:"https://github.com/particlefuture/1mcpserver",target:"_blank",rel:"noopener noreferrer",className:"absolute right-4 top-4 md:right-8 md:top-8","aria-label":"GitHub repository",children:(0,s.jsx)(x,{variant:"ghost",size:"icon",className:"h-10 w-10 text-primary transition-colors hover:bg-white/10 hover:text-primary",children:(0,s.jsx)(i.A,{className:"h-6 w-6"})})}),(0,s.jsxs)("main",{className:"flex w-full max-w-5xl flex-col items-center justify-center space-y-16",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-4 text-center",children:[(0,s.jsx)("h1",{className:"font-headline text-5xl font-bold tracking-tighter text-primary sm:text-6xl md:text-7xl lg:text-8xl",children:"1 MCP Server"}),(0,s.jsx)("p",{className:"max-w-2xl text-lg text-foreground/80 md:text-xl",children:"Find, configure, and run MCP servers in one click."})]}),(0,s.jsxs)("div",{className:"flex w-full max-w-4xl flex-col items-center gap-12",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-start gap-4 text-left",children:[(0,s.jsx)("h2",{className:"w-full text-center font-headline text-3xl font-semibold text-primary/90",children:"Get Started"}),(0,s.jsxs)(b,{defaultValue:"cursor",className:"w-full",children:[(0,s.jsxs)(y,{className:"grid w-full grid-cols-2",children:[(0,s.jsx)(w,{value:"cursor",children:"Cursor"}),(0,s.jsx)(w,{value:"claude",children:"Claude"})]}),(0,s.jsx)(j,{value:"cursor",children:(0,s.jsxs)("div",{className:"w-full space-y-4 rounded-lg border border-border bg-card p-6 text-foreground/90 shadow-md",children:[(0,s.jsxs)("p",{children:["For Cursor: Add the following code to"," ",(0,s.jsx)("code",{className:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",children:".cursor/mcp.json"})," ","in your cursor project directory.",(0,s.jsx)("br",{})]}),(0,s.jsxs)("pre",{className:"relative overflow-x-auto rounded-lg bg-zinc-900 p-4 text-left",children:[(0,s.jsx)(g,{textToCopy:e,className:"absolute right-3 top-3 text-primary transition-colors hover:bg-white/10 hover:text-primary"}),(0,s.jsx)("code",{className:"font-code text-base text-foreground/90 whitespace-pre",children:e})]})]})}),(0,s.jsx)(j,{value:"claude",children:(0,s.jsx)("div",{className:"w-full space-y-4 rounded-lg border border-border bg-card p-6 text-foreground/90 shadow-md",children:(0,s.jsxs)("p",{children:["Instructions for setting up with Claude is available at ",(0,s.jsx)("a",{href:"https://github.com/particlefuture/1mcpserver",className:"text-primary underline",children:"Github"})," for more information."]})})})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,s.jsx)("h2",{className:"font-headline text-3xl font-semibold text-primary/90",children:"Watch the Demo"}),(0,s.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg border-2 border-border shadow-lg",children:(0,s.jsx)("iframe",{className:"absolute top-0 left-0 h-full w-full",src:"https://www.youtube.com/embed/W4EAmaTTb2A",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})]})]})}j.displayName=v.UC.displayName}},e=>{var r=r=>e(e.s=r);e.O(0,[988,441,684,358],()=>r(2751)),_N_E=e.O()}]);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/particlefuture/1mcpserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server