Docs · MCP server
Connect PitHub to your AI tools
PitHub's MCP server gives ChatGPT, Claude, Cursor, Codex, and other AI clients a secure way to save, update, find, and share conversations for you.
MCP in plain language
Think of MCP as a bridge between your AI app and PitHub. Once connected, you can ask your AI to save a useful exchange in normal language, no copying, exporting, or reformatting the conversation yourself.
On this page
Step 1
Choose how to connect
Pick your AI app below and follow its exact setup instructions. Use the remote URL when it is available; it is the simplest option and requires no local installation. The npm package is for coding agents and desktop apps that connect over stdio.
Not sure which to pick? Start with Remote URL. If your app does not support it, the installer will point you to the npm option.
https://pithub.app/mcpAdd just the URL and your client opens a browser to sign in, no token to manage. Clients without that popup can send a Bearer token header instead.
In the ChatGPT app or on chatgpt.com, add PitHub as a connector, a browser opens to sign in, no token to paste. Works for tool calls in chat and as a Deep Research source.
https://pithub.app/mcp
Tip, Settings → Connectors → Add custom connector (turn on Developer mode / connectors if you don't see it), paste the URL, and Authorize. Needs a ChatGPT plan that supports connectors.
Step 3
Save your first pit
You do not need to remember tool names. Ask in normal language and your AI client chooses the right PitHub tool.
“Save the last exchange to PitHub as ‘MCP onboarding notes’ and keep it private.”
- Your AI previews or selects the messages you requested.
- PitHub saves the pit with your title and visibility.
- The client confirms what was saved and gives you a link.
Everyday use
Choose which messages to save
You rarely need the entire transcript. Describe the part you want, and the server maps your request to a precise, predictable selection. Pick a phrase below to see exactly which messages it saves.
preview_pit_selection →
Saving 2 of 6 messages · #5, #6. Message #5 comes along as context so the reply still makes sense.
When you select an AI reply, PitHub includes the question above it by default so the answer keeps its context. Say “just the reply” if you only want the answer.
Reference
Tools and example requests
Natural-language requests are usually all you need. These examples show common workflows; the reference below lists every tool available to the client.
Save
“Save this whole conversation to my PitHub and keep it private.”
Share with a team
“Push the last four messages to the platform team as ‘API launch notes’.”
Create a new version
“Append this exchange to my API launch pit.”
Find and reuse
“Find the public onboarding pit and fork it into my account.”
Full tool reference
Save and update
create_pitSave a new conversation, personally or to a team. Can attach files.
preview_pit_selectionPreview exactly which messages will be saved.
append_to_pitAdd messages as a new version of an existing pit.
update_pitChange metadata, visibility, or the conversation.
publish_pitChange a private or unlisted pit to public.
Find and reuse
get_pitRead a pit and its full conversation.
list_my_pitsList your pits, including private ones.
search_pitsSearch public pits.
fork_pitCopy someone else’s pit into your account.
list_pit_versionsRead the version history of a pit.
Files
add_pit_filesAttach text files to a pit, skills, prompts, playbooks.
list_pit_filesList the files attached to a pit.
get_pit_fileRead the text of a pit’s attached files.
Teams and collaborators
list_teamsList your team workspaces and role in each.
list_team_pitsList the private pits in a team workspace.
add_collaboratorLet another user push to one of your pits.
list_collaboratorsSee who can push to a pit.
Connection and account
connect_pithubOpen the browser approval page (npm only).
check_connectionShow the connected PitHub account.
delete_pitDelete one of your own pits.
Distribution
Plugins and directories
Beyond adding the URL by hand, PitHub ships as a Claude Code plugin. Directory listings that need an application are marked pending below.
Claude Code plugin
Installs the hosted server and its OAuth flow in one step. The marketplace lives in the PitHub repo, so it needs no approval from anyone.
/plugin marketplace add homersimpcode/pithub /plugin install pithub@pithub
The plugin points at the hosted server, which has no filesystem. To attach files from your own disk, add the npm server instead:
claude mcp add pithub -- npx -y pithub-mcp
Where you can install PitHub
Remote MCP URL
https://pithub.app/mcp, works in any client that speaks MCP over HTTP.
npm package
pithub-mcp on npm, for stdio clients and local file attachments.
Claude Code plugin
Self-hosted marketplace in this repo, no approval needed.
Anthropic connector directory
Application required. The OAuth discovery chain it depends on is already in place.
ChatGPT app directory
Submission required. The search and fetch tools it depends on are already implemented.
MCP registry
Submission required, the community index of MCP servers.
Optional
Publish images with a conversation
Generated images can travel with the conversation. How you provide the image depends on the connection type.
npm package
Pass an absolute PNG, JPEG, GIF, WebP, or SVG file path. PitHub uploads it and stores a stable hosted URL.
Remote URL
The hosted server cannot read your computer. Pass a public HTTP(S) URL or a base64 image data URI instead.
images: [{
source: "/absolute/path/to/generated-poster.png",
alt: "A glowing archive of saved AI conversations"
}]By default, the image attaches to the final selected message. Add a 1-based message_index to place it on a different message.
Advanced
Use the REST API directly
The MCP server uses the same public REST API. Authenticate requests with Authorization: Bearer <token>.
Pits
Discovery and accounts
Export formats: ?format=md|json|txt|prompt