MCP API - Connect ResourceSpace to ChatGPT or Claude
Use your ResourceSpace library from a conversation. You can search for assets, read their metadata and retrieve an original or an alternative file. The connection is read-only. Each person signs in with their own ResourceSpace account, so their existing permissions determine what the assistant can see and download.
Before you start
Ask your ResourceSpace administrator for the public HTTPS address of your installation and confirm that it supports MCP and has remote APIs enabled ($enable_remote_apis = true;). Append /api/mcp/ to the installation address, keeping any installation subdirectory and the final slash. For example, a library at https://assets.example.org/library uses https://assets.example.org/library/api/mcp/.
Enter this address in the assistant. With automatic client discovery enabled, the same address works for both assistants and you can leave the client ID and secret blank. If your administrator has restricted connections to registered clients, ask them for the registration details for your assistant.
Connect ChatGPT
- Open ChatGPT on the web and select the workspace where you want to use ResourceSpace. Open Plugins, select +, then Add custom MCP server. In the older Apps interface, open Settings → Apps → Create. If creation is unavailable, ask your workspace administrator to add the connection or grant access.
- Name the connection ResourceSpace and paste your MCP address. Choose OAuth (labelled OAuth or no authentication in some versions). If asked how to identify the client, choose the published client identity or Client ID Metadata Document.
- Review the connection details and create the plugin. In the older interface, choose Scan Tools, then Create. When prompted, sign in on your ResourceSpace site, check the client and return address, and approve read access.
- Install or connect the resulting plugin. Start a new chat, type @ and select ResourceSpace. Ask it to search for a term you know is in your library.
Workspace administrators can make the connection available to colleagues. Each colleague still connects their own ResourceSpace account. OpenAI’s custom MCP connection guide
Connect Claude
- On an individual account with custom connectors, open Customize → Connectors → + Add → Add custom connector. In a Team or Enterprise workspace, an owner can add it under Organization settings → Connectors.
- Enter ResourceSpace as the name, paste your MCP address and select Continue. Review the detected settings, select Sign in now and choose Use Claude’s published identity.
- Select Add. If your workspace owner has already added ResourceSpace, find it under Customize → Connectors and select Connect. Sign in to ResourceSpace, check the client and return address, and approve read access.
- In a new chat, open + → Connectors and enable ResourceSpace. Ask Claude to search your library.
If your site requires manual client registration, select Use your own OAuth client and enter the details supplied by your administrator. Claude’s redirect address for this registration is https://claude.ai/api/mcp/auth_callback. Anthropic’s remote connector guide
Find and inspect assets
Start with a keyword you know is in your library. For example, ask “Search ResourceSpace for beach. Show five matches with their titles and dimensions, and tell me how many matches there are altogether.” You can ask for the next five without repeating the search. Search results can include your site's thumbnail display fields, resource type, workflow state and a link to open each asset in ResourceSpace.
For a visual check, ask “Show me a larger preview of the second image. Is there room on the left for a headline?” The assistant can request a stored preview without downloading the original. ResourceSpace applies its usual preview permissions and watermarks. If a preview is unavailable, the assistant can still report visible metadata. Up to five results on each search page can include thumbnails. In a chat that displays the interactive gallery, select a thumbnail and refer to it as “the selected resource” in your next message. You can also refer to a resource by its ID.
Search a customised library
Ask “Which resource types can I search here?” Then try “For the photograph type, show me the searchable fields and the available values for Subject.” The assistant can discover your site's field names, field types and eligible fixed-list options, including category-tree parents. It can page through long option lists or look up a label by name.
Use those names in a brief. For example, “Find landscape photographs with Subject set to Coast, dated between 1 March and 30 June 2025. Sort newest first and include the photographer and credit line for each.” Substitute fields and options used by your site. You can also filter by workflow state, ask for an exact phrase, or request extra metadata directly in the results. Dates refer to the installation's configured search date field.
For usage information, ask “What licence, credit and expiry are recorded for my selection?” Search summaries can include the rights fields your administrator has configured. If a value is missing, check the resource record before using the asset.
Explore collections and answer reporting questions
Try “Find the summer campaign collection and summarise its contents” or “Show me the photographs related to this museum object”. You can also ask the assistant to browse the featured collections you can see.
For a report, try “What percentage of our photographs have captions?”, “Which countries appear most often in our photography?” or “Which beach images were downloaded most last year?” Reports use your accessible resources. Narrow the search by type or keywords if the assistant reports that the population exceeds the reporting limit. Download statistics depend on the events retained in your installation.
Retrieve the selected file
- Ask “List the alternative files for the selected resource.” ResourceSpace returns the alternatives available to your account.
- Ask for the original or a named alternative, for example “Retrieve the web-resolution alternative for resource 123.” Use the actual ID and alternative name from your results.
- In ChatGPT, if the file card offers Use file in ChatGPT, select it to pass that file to the conversation. For an image, you can then ask “Use this selected image in a downloadable project brief and include its credit line.” This action supports files up to 8 MiB on hosts with ChatGPT's file upload feature.
In either assistant, files up to 1 MiB can be returned directly through MCP. Larger files have an authenticated download link for the connected client. For a manual download, follow Open in ResourceSpace, sign in if prompted, and choose the original or alternative there. Use this route when your library requires you to accept terms or enter usage information.
Troubleshooting
The assistant cannot discover the server. Check the installation address, including the final /api/mcp/. Ask your administrator to check HTTPS reachability, remote API access and OAuth discovery, particularly if ResourceSpace is installed in a subdirectory.
The connection exists but no tools appear. Check that the correct workspace and connector are selected. Check for search_resources, get_resource_preview and get_system_info in the discovered tools. In a managed workspace, ask the owner to check which tools are enabled.
The assistant asks you to reconnect. Access tokens last one hour. Reconnect and approve access again. If it asks immediately after approval, ask your administrator to check that the web server forwards the Authorization header to PHP and that your ResourceSpace session is still active. Accounts subject to a group download quota cannot authorise this connection.
Search works but thumbnails or the gallery are missing. Ask for a preview of a specific resource by ID. The chat interface determines how results appear, and your ResourceSpace permissions determine which previews can be supplied.
A search field or option is missing. Ask the assistant to list fields for the specific resource type. Your site's configuration and field permissions control which fields and options appear. An administrator can narrow the available option fields and select which recorded rights fields appear in search summaries.