|
|
|
MCP Server |
|
As discussed in the Getting Started > AI in Practice section, an MCP server is a controller between DEVONthink and external AI applications, giving them commands and controlled access to your databases. Here we'll cover some benefits and setup information. As Anthropic is the one who started this all and setting up MCP with their Claude application requires very little effort, we'll use it as our example. For those curious about advantages of using the MCP server, here are some things to know:
And if you're wondering what kinds of things you can do with the MCP server, there are many commands, capable in isolation and powerful when run in combinations. Here are some aspects of DEVONthink you can control via the MCP :
So you can command your AI application with directives like, Basic Setup DEVONthink's MCP server is built to be run and accessed on the same Mac, letting you leverage an external LLM and our application's powerful automation functions. Fortunately, the setup is usually very simple as illustrated in the next paragraph. First you need to set up DEVONthink's MCP server in the
AI > MCP settings. To get up and running quickly, we'll just check Redact sensitive content and Install for Claude Desktop. Logically, if you're using Claude Code, Codex, or the Hermes Agent, you would install the appropriate option. Enabling Launch at login is a good idea and lessens friction if you choose to explore other applications in the future. Now open Claude.app and ask something DEVONthink-related, like, Other MCP Clients: You may not be running one of the support AI applications but that doesn't mean you're out of luck. Refer to the client's documentation to see if it supports standard input/output (stdio) or URL-based communication and how to set up the MCP connection. But be aware setting up access from other applications may require editing a configuration file manually. HTTP Connections: Some AI applications use a web-based method, e.g., You also need to register the server URL with your MCP application so it knows how to connect. When used with the supported clients, do this to use the URL access method. Check the documentation for configuring other clients. Open
Advanced Setup While initially built for on-device access, it's also possible to connect another device to the MCP server. When connected to the MCP server, you can make inquiries about the host's databases and even run skills based on the replies. While we can't offer application-specific instructions for every instance, here is a generic overview of the requirements. If you want to access your DEVONthink MCP server from another Mac or device on your network, you'll need two important authentication elements: a TLS certificate and a bearer token. The server won't allow network access without both pieces in place. Bearer Token: This is a long alphanumeric code specific to your MCP server. When a device tries to connect to the MCP server, it must present this token or it will be denied access. TLS Certificate: The server requires a proper TLS identity stored in your macOS Keychain. Self-signed certificates won't work so you'll need one from a trusted Certificate Authority. While we can't provide explicit instructions for getting a certificate, some common places to acquire one are: from your organization's IT department, via Let's Encrypt in conjunction with tools like Certbot, or by purchasing one from providers like DigiCert, Sectigo. Once you have your certificate, import it into Apple's Keychain Access application. Double-click the keychain entry, open the Trust section, and set it to Always Trust. Save the change when closing the window then return to DEVONthink. If set up properly, you should see it appear TLS Certificate popup discussed below. Setting up the Server Mac: Once you have acquired and added a TLS certificate to Keychain Access, setting up the server Mac is straightforward. Open the AI > MCP settings and do these things:
Connecting from Another Mac: Once the host Mac is configured, add access to the server on the connecting Mac using your client. Armed with the URL and bearer token, this may be done in the Terminal application, e.g., for Claude Code:
In the above command, replace And for other applications, you may need to edit a configuration file, either manually or via the client's settings. Again, consult its documentation. Controlling MCP's Behavior When you start using the MCP server, you may be prompted to allow access to certain locations. You may also be asked to allow use of the MCP tools. This behavior will vary, depending on the client application. We will use Claude Desktop as an example. The first time Claude uses a specific tool, you will be asked to allow the behavior. Choose Allow Once or Always Allow, whichever you're comfortable with. However, you can not only view but also control access or prohibit certain functions from the MCP server.
|