loading…
Search for a command to run...
loading…
A remote MCP server that can be deployed on Cloudflare Workers, using OAuth authentication and SSE transport for tool invocation.
A remote MCP server that can be deployed on Cloudflare Workers, using OAuth authentication and SSE transport for tool invocation.
Remote MCP servers require OAuth, so this flow implements a local version of the OAuth redirects, but instead accepts the API token and any other client configuration options that you'd need to instantiate your TypeScript client.
The recommended way to use this project is to use the below "deploy to cloudflare" button to use this repo as a template for generating a server.
# install dependencies
npm install
# run locally
npm run dev
You should be able to open http://localhost:8787/ in your browser
To explore your new MCP api, you can use the MCP Inspector.
npx @modelcontextprotocol/inspectorSSE and enter http://localhost:8787/sse as the URL of the MCP server to connect to, and click "Connect"The MCP inspector is great, but we really want to connect this to Claude! Follow Anthropic's Quickstart and within Claude Desktop go to Settings > Developer > Edit Config to find your configuration file.
Open the file in your text editor and replace it with this configuration:
{
"mcpServers": {
"thrive_mcp_api": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/sse"]
}
}
}
This will run a local proxy and let Claude talk to your MCP server over HTTP
When you open Claude a browser window should open and allow you to login. You should see the tools available in the bottom right. Given the right prompt Claude should ask to call the tool.
If you want to manually deploy this server (e.g. without the "deploy to cloudflare" button)
npx wrangler@latest kv namespace create remote-mcp-server-oauth-kvwrangler.jsoncnpm run deployJust like you did above in "Develop locally", run the MCP inspector:
npx @modelcontextprotocol/inspector@latest
Then enter the workers.dev URL (ex: worker-name.account-name.workers.dev/sse) of your Worker in the inspector as the URL of the MCP server to connect to, and click "Connect".
You've now connected to your MCP server from a remote MCP client.
Update the Claude configuration file to point to your workers.dev URL (ex: worker-name.account-name.workers.dev/sse) and restart Claude
{
"mcpServers": {
"thrive_mcp_api": {
"command": "npx",
"args": ["mcp-remote", "https://worker-name.account-name.workers.dev/sse"]
}
}
}
Should anything go wrong it can be helpful to restart Claude, or to try connecting directly to your MCP server on the command line with the following command.
npx mcp-remote http://localhost:8787/sse
In some rare cases it may help to clear the files added to ~/.mcp-auth
rm -rf ~/.mcp-auth
Выполни в терминале:
claude mcp add thrive-mcp-api-server -- npx PRs, issues, code search, CI status
автор: GitHubDatabase, auth and storage
автор: SupabaseSecure file operations with configurable access controls.
Reference / test server with prompts, resources, and tools.
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development